[英]Specify HTTPS for custom WCF Binding
I have an custom binding defined as follows: 我有一个自定义绑定,定义如下:
<customBinding>
<binding name="binaryHttpBinding">
<binaryMessageEncoding />
<httpTransport />
</binding>
This is used for an endpoint that a Silverlight 3 application uses to connect to the service. 这用于Silverlight 3应用程序用来连接到服务的终结点。 This works fine under HTTP, but i would like to specify this binding to use HTTPS and I am kinda lost on how to define that.
这在HTTP下工作正常,但是我想指定此绑定以使用HTTPS,而我对如何定义它有些迷惑。 I am using selfSSL.exe from the IIS Resource Toolkit to setup an SSL on my local machine.
我正在使用IIS Resource Toolkit中的selfSSL.exe在本地计算机上设置SSL。 I can browse the svc file fine through HTTPS (although the browser throws up a warning that its not a recognized cert).
我可以通过HTTPS很好地浏览svc文件(尽管浏览器会发出一个警告,提示它不是公认的证书)。 How can i setup this custom binding to use transport security over HTTPS?
如何设置此自定义绑定以通过HTTPS使用传输安全性?
Simple change, use the httpsTransport like so: 简单的更改,像这样使用httpsTransport:
<customBinding>
<binding name="binaryHttpBinding">
<binaryMessageEncoding />
<httpsTransport />
</binding>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.