使用 IIS 中的传输层安全性对 SOAP 主体进行签名和仅签名
我正在尝试使用 X509 证书使用 C# 在 IIS 服务器中签署 SOAP 消息。我还计划使用传输层安全性并进行 SOAP 加密,这对于我的需求来说是多余的。我只想签署消息正文、时间戳和一些其他元素。
从查看配置来看,似乎没有办法“仅”签署 SOAP 消息,如果您进入 WS-Security,您最终会陷入签名和加密的困境,唯一可用的选项围绕您想要的内容喜欢掩护以及以什么顺序进行安全操作...
是这样吗?还有其他我缺少的方法吗?
I'm trying to sign a SOAP message in an IIS server with C# using X509 Certificates. I also plan to use transport layer security and doing SOAP encryption, as well, is overkill for my needs. I want to just sign the message body, a time stamp and a few other elements.
From looking into the configurations, it appears that there is no way to "only" sign a SOAP message, if you get into WS-Security, you end up stuck with both signing and encrypting and the only options available revolve around what you'd like to cover and what order to do the security operations with...
Is that true? Is there some other way to do this that I am missing???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这在 WCF 消息协定的上下文中是可行的。链接有相关的枚举。如果您没有使用 WCF,这可能仍会为您提供指向您正在查找的相关 WS 信息的指针。
http://msdn.microsoft.com/en-us /library/system.servicemodel.messagecontractmemberattribute.protectionlevel.aspx
This is feasible in the context of a WCF message contract. Link has the the relevant enumeration. If you're not using WCF, this might still provide you a pointer to the relevant WS- information you're looking for.
http://msdn.microsoft.com/en-us/library/system.servicemodel.messagecontractmemberattribute.protectionlevel.aspx