为什么需要在 Netsh 中为具有传输安全性的 WCF 自主机配置带有证书的端口?

发布于 2024-10-05 23:38:39 字数 299 浏览 0 评论 0原文

为什么在自托管使用传输安全性的 WCF 服务时必须使用证书配置端口?

我了解 SSL/HTTP 并且需要证书。但是,在非 WCF 上下文中,我只需创建一个 SSL 套接字并以编程方式分配证书。对于 WCF 自托管情况,为什么需要额外的 netsh 步骤(如下面的链接所示)?

http://msdn.microsoft.com/en-us/library/ms733791.aspx

Why does one have to configure a port with a certificate when self-hosting a WCF service that uses transport security?

I understand SSL/HTTP and that the certificate is needed for it. However, in non-WCF contexts, I can just create an SSL socket and assign the certificate programmatically. For the WCF self-host case, why is the extra netsh step required (as in link below)?

http://msdn.microsoft.com/en-us/library/ms733791.aspx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奈何桥上唱咆哮 2024-10-12 23:38:39

这仅适用于 HTTP 的情况。

HTTP.SYS 需要该设置,因此无论您使用 IIS 还是自托管,在内核模式下运行的 HTTP.SYS 都需要设置。

This is only in the case of HTTP.

That setup required for HTTP.SYS so no matter if you are using IIS or self-hosting, HTTP.SYS running in Kernel mode will require setup.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文