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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage