----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: shubz Message 1 in Discussion Trying to add certificate thru code to the certificate store using WSE ... X509Certificate certFromFileOriginal = X509Certificate.CreateCertFromFile(@"C:\Keys\CertServerCA.cer"); X509CertificateStore store = X509CertificateStore.CurrentUserStore(X509CertificateStore.MyStore); store.Open(); int certPos = store.Certificates.Add(certFromFileOriginal); store.Close(); certFromFileOriginal has the correct certificate object, but on adding it to the store the certificate does not show up if you look up in the mmc. In fact in the certificate collection (you can see it by putting store.Certificates in the watch) CertServerCA.cer is not added. There is no change in the content of the store and no errors are thrown. Tried store.Certificates.Insert(2, retreivedCert) also. Same problem. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
