How to use WS-Security in C#?

后端 未结 2 780
予麋鹿
予麋鹿 2021-01-03 16:35

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 certificate

相关标签:
2条回答
  • 2021-01-03 17:11

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

    WCF is part of .NET 3.0 and up.

    Marc

    0 讨论(0)
  • 2021-01-03 17:23

    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.

    0 讨论(0)
提交回复
热议问题