【发布时间】:2018-11-10 20:47:40
【问题描述】:
我有一个 WCF 网络服务应用程序。构建了另一个 .net 应用程序来使用 wcf 网络服务。
我不断收到此错误消息。 " 无法为具有权限 'dev.xxxxx.com' 的 SSL/TLS 安全通道建立信任关系。"
我搜索了它并尝试了一些不同的解决方案,但仍然无法修复它。
WCF 服务配置:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding maxBufferSize="104857600" maxReceivedMessageSize="104857600" sendTimeout="00:10:00">
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
<system.webServer>
客户端配置:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpsBinding_IIRSvc">
<security mode="Transport">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://dev.xxxxx.com/IRSvc.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpsBinding_IIRSvc"
contract="irsvc.IIRSvc" name="BasicHttpsBinding_IIRSvc" />
</client>
</system.serviceModel>
【问题讨论】:
-
请显示端点的服务器配置
-
这就是我在 hte 配置文件中的全部内容。
标签: wcf ssl wcf-binding wcf-security