简体   繁体   English

WCF - 传输安全性是否仅适用于Intranet方案?

[英]WCF - Does Transport Security only work for Intranet Scenario?

I would like to secure a WCF service at transport level, however reading this article it says it works for a Intranet scenario: http://msdn.microsoft.com/en-us/library/ff648863.aspx 我想在传输级别获得WCF服务,但是阅读本文它说它适用于Intranet场景: http//msdn.microsoft.com/en-us/library/ff648863.aspx

"Use transport security in the following scenarios: “在以下情况下使用传输安全性:

You are sending a message directly from your application to a WCF service and the message will not be routed through intermediate systems. 您正在从应用程序直接向WCF服务发送消息,并且不会通过中间系统路由消息。 Both the service and the client are located in an intranet." 服务和客户端都位于内联网中。“

For Internet scenario Message Security approach should be used? 对于Internet方案,应该使用Message Security方法吗?

"Your WCF clients are accessing the WCF service over the Internet and messages may be routed through intermediate systems." “您的WCF客户端正在通过Internet访问WCF服务,并且可以通过中间系统路由消息。”

Please, let me know if transport security only works for intranet scenario? 请告诉我运输安全性是否仅适用于Intranet方案?

You can use Transport -level security for services over the internet. 您可以通过Internet使用Transport -level安全性服务。 Message -level security is generally recommended as it provides a superior level of security. 通常建议使用Message级安全性,因为它提供了更高级别的安全性。 Message -level provides end-to-end security while Transport -level only provides point-to-point, but that doesn't mean you cannot create a secure WCF service without Message security. Message -level提供端到端安全性,而Transport -level仅提供点对点,但这并不意味着您无法在没有Message安全性的情况下创建安全WCF服务。

There are even scenarios where Message security over the internet is a poor choice such as Streaming Large Data . 甚至有些情况下,互联网上的Message安全性是一个糟糕的选择,例如Streaming Large Data With Message security you can't stream data in chunks as WCF will buffer all messages into memory before transmission when message security is set. 使用Message安全性,您无法以块的形式传输数据,因为在设置消息安全性之前,WCF会在传输之前将所有消息缓冲到内存中。 This can lead to scalability issues. 这可能导致可伸缩性问题。

You can secure your WCF Service with Transport security over the internet by using Secure HTTP (HTTPS Protocol). 您可以使用安全HTTP (HTTPS协议)通过Internet保护WCF服务的Transport安全性。 Install a certificate on the server machine, bind the certificate to a specified port on server machine and SSL will provide security. 在服务器计算机上安装证书,将证书绑定到服务器计算机上的指定端口,SSL将提供安全性。

But I would always use Message security in an internet scenario - unless circumstances did not permit as in the large data scenario above. 但我总是在互联网场景中使用Message安全性 - 除非在上述大数据场景中情况不允许。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM