How to use WS-Security in C#?

假如想象 提交于 2019-12-30 05:27:20

问题


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.


回答1:


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.

That will allow you to implement the WS-Security standards in .NET 2.0 Web Services.

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.




回答2:


Use WCF - it supports a plethora of WS-* standards - including WS-Security.

WCF is part of .NET 3.0 and up.

Marc



来源:https://stackoverflow.com/questions/1534061/how-to-use-ws-security-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!