开发者

Web Services and X509

开发者 https://www.devze.com 2023-02-22 15:54 出处:网络
I am getting following error in my web service when using x509 Certificate to authenticate the client.

I am getting following error in my web service when using x509 Certificate to authenticate the client.

X509Certificate2 Clnt = new X509Certificate2 (HttpContext.Current.Request.ClientCertificate.Certificate);

The error is System.Web.Services.Protocols.SoapException: Serv开发者_如何学编程er was unable to process request. ---> System.Security.Cryptography.CryptographicException: m_safeCertContext is an invalid handle. at System.Security.Cryptography.X509Certificates.X509Certificate.get_Issuer() at Service.HelloWorld() in c:\MyWorkSpace\SecuredWS\App_Code\Service.cs:line 40 --- End of inner exception stack trace

Can any one put some light on it as why i am getting m_safeCertContext as null.

Regars


Finally, We solved this issue. If anyone interested to know i can put resolution here.

0

精彩评论

暂无评论...
验证码 换一张
取 消