Ben. NET tarafından geliştirilen bir web hizmeti ile iletişim kurmak için çalışıyorum, ve ben PHP müvekkilimi yazıyorum. Hemen baş ağrısı biri SignatureValue ve SignedInfo için oluşturuyor.
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
<Reference URI="#_0">
<Transforms>
<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>CwMGnFZklO7XsDfFguzl0tw7iHM=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>nXJEN8p1nupMA/00TK03VZlADkU=</SignatureValue>
There was an Entropy sent to the server and and Entropy received from the server... Sent to server:
<t:Entropy>
<t:BinarySecret u:Id="uuid-6d32fbfc-2a74-422f-8b0b-3089db58f6ec-1"
Type="http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce">
grrlUUfhuNwlvQzQ4bV6TT3wA8ieZPltIf4+H7nIvCE=
</t:BinarySecret>
</t:Entropy>
sunucudan alınan:
<t:Entropy>
<t:BinarySecret u:Id="uuid-8aebe294-15d0-4233-a3b1-ddd9a0d43d98-4"
Type="http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce">
YLABh3ZmZyiO5gvVLZe9J4JPd9w59KGeTFwE85XlzxE=
</t:BinarySecret>
</t:Entropy>
Okuduğum kadarıyla, ben ortak bir anahtar oluşturmak ve daha sonra imzalanan değer üretmek için conocalized SignedInfo üzerinde HMAC_SHA1 çalıştırmak için PSHA1 kullanmak için varsayalım duyuyorum. Bu iki entropi kullanarak, beklenen değeri nXJEN8p1nupMA/00TK03VZlADkU= ama o oluşturmak asla ...
Psha1_derive Benim parametre psha1_derive($entropySentByMe (as $secret), 'WS-SecureConversationWS-SecureConversation', $entropyReturnedByServer (as $seed), '' (as timestamp), and length is 32 (256 bits));
Herkes paylaşılan anahtarı veya nasıl imza değeri oluşturmak için türetmek için PSHA1 nasıl kullanılacağı hakkında daha fazla bilgi varsa, lütfen bana bildirin!