【问题标题】:Web Services and X509Web 服务和 X509
【发布时间】:2013-01-23 18:46:38
【问题描述】:

使用 x509 证书对客户端进行身份验证时,我的 Web 服务出现以下错误。

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

错误是 System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---> System.Security.Cryptography.CryptographicException:m_safeCertContext 是无效句柄。 在 System.Security.Cryptography.X509Certificates.X509Certificate.get_Issuer() 在 c:\MyWorkSpace\SecuredWS\App_Code\Service.cs:line 40 中的 Service.HelloWorld() --- 内部异常堆栈跟踪结束

任何人都可以解释一下为什么我将 m_safeCertContext 设为 null。

问候

【问题讨论】:

    标签: service x509certificate


    【解决方案1】:

    最后,我们解决了这个问题。如果有人有兴趣知道我可以在这里提出解决方案。

    【讨论】:

    • 请发表您的决心以帮助他人(例如我自己):)
    • 你能发布你的解决方案吗?
    猜你喜欢
    • 2011-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-21
    • 1970-01-01
    • 2019-01-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多