Hi Guys,
I am trying to access a webservice that requires client certificate for authentication. The client has sent us the certificate(.p12) along with the password, and I have installed the certificate under my local machine store as explained in the following article.
http://support.microsoft.com/kb/901183.
Using WSE2.0 I am also able to pull the certificate using the following code:
// WSE 2.0 method
X509CertificateStore store =
X509CertificateStore.LocalMachineStore(X509CertificateStore.MyStore);
store.OpenRead();
// Look for the first certificate that is named SecureMathClient.
// Look in the local machine store.
X509CertificateCollection col=
(X509CertificateCollection)store.FindCertificateBySubjectString(certName);
X509Certificate cert =null;
try ...
Go to the complete details ...