保护 WCF 服务 [英] Securing WCF Services
问题描述
我将 WCF 服务托管在控制台应用程序和访问其操作的 Web 应用程序上.我搜索了 WCF 安全性,并且在大多数情况下,Web 服务托管在 IIS 上.为了在我的案例中实现 WCF 传输层安全,我应该遵循哪些要点?
I have WCF services hosted on a console application and a web application accessing its operations. I have searched for WCF security and in most cases the web services were hosted on IIS. What points should I follow in order to implement WCF transport layer security in my case?
我想要的是
- 使用用户名和密码执行 WCF 操作
- 使用 SSL 加密数据.
如果我的 WCF 服务托管在控制台应用程序上.我应该进行任何 IIS 配置吗?
If my WCF services are hosted on a console application. Are there any IIS configurations that I should make?
推荐答案
如果您的 WCF 服务托管在控制台应用程序中,则 IIS 与它们无关,因此您无需配置 IIS 或任何其他内容.
If your WCF Services are hosted in a console app, IIS has nothing to do with them, so you don't need to configure IIS or anything.
>
为了获得传输层的安全性,您可以将 WsHttp 或 NetTcp 绑定与 SSL 结合使用.
In order to have transport-layer security, you can use WsHttp or NetTcp binding in combination with SSL.
看看 http://www.dotnetspark.com/kb/1502-security-wcf--transport-level.aspx,http://www.packtpub.com/article/microsoft-wcf-security 和 http://dotnetrobert.com/?q=node/140.
这篇关于保护 WCF 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!