【问题标题】:Adding Client SSL certificate to the WCF binding将客户端 SSL 证书添加到 WCF 绑定
【发布时间】:2011-03-14 00:10:28
【问题描述】:

有没有办法在 WCF 绑定中附加客户端 SSL 文件 (.pfx) 文件?我不想使用证书存储。

【问题讨论】:

    标签: wcf ssl binding client certificate


    【解决方案1】:

    这应该可以工作

    webServiceProxyInstance.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2("path to the pfx file", "password to open the private key");
    

    【讨论】:

      猜你喜欢
      • 2020-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-20
      • 2012-10-16
      • 2017-10-18
      相关资源
      最近更新 更多