0
我想通过WebHttpBinding和SecurityMode:transport(SSL)公开实施合同。在传输中使用WebHttpBinding时,连接中断安全模式
然而,当我尝试访问通过Firefox浏览器的网站,我只得到
,而该页面被加载到本地主机的连接被中断。
的配置文件如下:
<configuration>
<system.serviceModel>
<services>
<service name="MyService">
<endpoint address="https://localhost"
binding="webHttpBinding"
contract="MyService"
bindingConfiguration="secureWebHttp">
</endpoint>
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="secureWebHttp">
<security mode="Transport"/>
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>
</configuration>