【问题标题】:WCF client https requestWCF 客户端 https 请求
【发布时间】:2017-06-08 14:54:06
【问题描述】:

我正在尝试将 SOAP 消息发送到以 HTTPS 开头的端点。这是 SSL 的一种方式,所以我不需要证书来发送请求。

使用下面的配置时出现以下异常:

Could not establish secure channel for SSL/TLS with authority 'some.domain.com/endpoint'.

我尝试了许多不同的传输设置,有时它会在 ClientCredentials 中要求提供用户名或认证,但是嘿 - 我不应该需要它们!我可以通过浏览器窗口访问请求的端点而无需任何身份验证。 我在配置中遗漏了什么吗?我现在有点迷茫。

<bindings>
  <basicHttpBinding>
    <binding name="PublisherBinding">
        <security mode="Transport">
        <transport clientCredentialType="None" />
        </security>
    </binding>       
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://some.domain.com/endpoint"
    binding="basicHttpBinding" bindingConfiguration="PublisherBinding"
    contract="PublisherContract" name="NotificationsEndpoint"/>
</client>

【问题讨论】:

    标签: wcf ssl soap


    【解决方案1】:

    很遗憾,wcf 测试客户端不支持无效证书。你可以让它像Is it possible to force the WCF test client to accept a self-signed certificate? 那样工作,或者你可以使用wcfstorm。第二种解决方案更好。

    【讨论】:

      猜你喜欢
      • 2013-01-14
      • 1970-01-01
      • 2014-11-03
      • 2012-05-24
      • 1970-01-01
      • 2018-04-29
      • 2018-11-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多