CertMgr.exe


hello,

this msdn article talks calling certmgr.exe automate adding certificates on client work stations. http://msdn.microsoft.com/library/en-us/dnwinforms/html/clickoncetrustpub.asp?frame=true

but certmgr.exe part of sdk , not framework redistributable. how 1 automate task of installing trusted publisher , certifying authority certificate ?

thanks,

avinash

this done programmatically through .net using x509 classes.  perhaps this:

x509certificate2 cert = new x509certificate2(certfilename);
x509store store = new x509store(storename.trustedpublisher, storelocation.localmachine); // or storename.root and/or storelocation.currentuser

store.open(openflags.openexistingonly | openflags.readwrite);
store.add(cert);

brian stern [msft]



.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'