I have the following code snippet where I am trying to install a Certificate
Authority Trust through code. Most of our trusts are installed through
GPO's but this is a special circumstance for a Development CA and an SDK
install.
Like many other interfaces with the .Net API wrappers for the CAPI - I
receive no errors, but the certificate that I'm trying to install does not
persist. Does anyone have any thoughts? I'm going to hit google as well,
but because I couldn't find a similiar question in the newsgroup - I figured
I'd double dip.
Thanks!
xCertificate = new X509Certificate2(certPath);
store = new X509Store(StoreName.CertificateAuthority,
StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadWrite);
store.Add(xCertificate);
store.Close();
Jediah L.
Jediah L - 24 Mar 2008 16:27 GMT
sorry - wrong newsgroup....
>I have the following code snippet where I am trying to install a
>Certificate Authority Trust through code. Most of our trusts are installed
[quoted text clipped - 21 lines]
>
> Jediah L.