You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to POLICY (RequireDerivedKeys), user needs 2 DerivedKeyTokens (one for signing, other for encrypting).
And soap-wsse.php, unfortunatelly, lacks this functionality.
Therefore I added my own functions to cover that.
To create keys, I use following p-sha1 function: http://stackoverflow.com/questions/19590675/implementation-of-p-sha1-algorithm-in-php
According to POLICY (EndorsingSupportingTokens), we need to sign already created signature.
This implementation is also missing in soap-wssse.php.
I created my own function for that, but I'm not sure if it works correctly.
As a result, I receive following response after I send generated XML:
CryptographicException: Unable to resolve the '#...' URI in the signature to compute the digest.
Can you please help me with those tokens? Do you find it reasonable to add such support for DerivedKeyToken into your class?
Thank you!
The text was updated successfully, but these errors were encountered:
Can you send me the code you added as well as the full code from you example so I can see why you might be getting that error. I have been meaning to add support for derived keys but haven't had the time so whatever you might have for code would be helpful
Marking this as resolved here as I did add an option for specifying which signature to pull. Will handle the remaining over in the wse-php issues: robrichards/wse-php#9
Hello!
I know that you maintain this wonderful xmlseclib library which I am currently using.
And I have a question about it, maybe you could help me with finding a proper soultion.
Here is a problem:
This is the WS-POLICY for the service:
The problem is following:
And soap-wsse.php, unfortunatelly, lacks this functionality.
Therefore I added my own functions to cover that.
To create keys, I use following p-sha1 function: http://stackoverflow.com/questions/19590675/implementation-of-p-sha1-algorithm-in-php
This implementation is also missing in soap-wssse.php.
I created my own function for that, but I'm not sure if it works correctly.
As a result, I receive following response after I send generated XML:
CryptographicException: Unable to resolve the '#...' URI in the signature to compute the digest.
Can you please help me with those tokens? Do you find it reasonable to add such support for DerivedKeyToken into your class?
Thank you!
The text was updated successfully, but these errors were encountered: