I have already installed the ssl cert
in user PC. And, I also imported the cert under Local computer of Trusted Root Certification Authorities
. I am trying to consume the web servcie
. In my code I attach the cert as below.
webservice.ClientCertificates.Add(X509Certificate.CreateFromCertFile(certPath));
But I got the following error.
Cannot find the certificate in either the LocalMachine store or the CurrentUser store
What could be the issue? I'm using .Net Framework 2.0. So, not able to use WCF. Thanks.