如何在C#中使用WS-Security? [英] How to use WS-Security in C#?
问题描述
如何创建在C#中使用的WS-Security进行加密和签名双方(请求和响应)的Web服务?
How to create a web service in C# that uses WS-Security for encryption and signatures for both sides (requests and responses)?
客户端和服务器将使用证书
Client and server will use certificates.
推荐答案
不知道你正在使用的框架版本,但如果它是.NET 2.0(不使用WCF)检查 Web服务扩展3.0 一>
Not sure which version of the framework you're using, but if it's .NET 2.0 (not using WCF) check out Web Service Extensions 3.0.
这将让你实现WS-Security的.NET 2.0中的Web服务标准。
That will allow you to implement the WS-Security standards in .NET 2.0 Web Services.
如果你使用WCF,看看一>获得关于如何使用WS-Security标准,以确保您的服务的一些想法。
And if you're using WCF, take a look at this article to get some ideas on how to secure your services using the WS-Security standards.
这篇关于如何在C#中使用WS-Security?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!