开发者

What to sign when signing a message with ws-security

开发者 https://www.devze.com 2023-01-01 13:39 出处:网络
I am adding security to my web service and chose to sign the Timestamp and Token. While reading docs I found a lot of examples where they sign the Body of the SOAP message.

I am adding security to my web service and chose to sign the Timestamp and Token.

While reading docs I found a lot of examples where they sign the Body of the SOAP message.

My question is: what is best to 开发者_如何转开发sign?

From what I understand signing the Body could lead to performance issues if the Body is pretty large.

Thanks.


You should definitely sign the whole message body.

XMLDSIG is performed on the digests of referenced parts defined in <SignedInfo>. Running a hash algorithm like SHA1 through a large body takes very little time compared with the PKI operations. You shouldn't worry about performance.


If a client sends a WS-Secure SOAP request to the server over HTTPS my understanding is that even if someone sniffed the traffic they cannot decrypt it to look at the SOAP message and therefore cannot tinker with it. So I don't see the need for two-way SSL.

When using WS-Secure over HTTPS can we not let the HTTPS take care of encryption and simply use WS-Secure for authentication (ie signing some part of the SOAP message either timestamp or body or something else) ?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号