如何在C#中使用WS-Security? [英] How to use WS-Security in C#?

查看:1151
本文介绍了如何在C#中使用WS-Security?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆