-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid signature #200
Comments
Looking at the code,
Personally I think APIs can be designed to avoid misuses. I recommend having 2 APIs:
and
XMLDSig is complicated enough any effort from the library to make developers less able to produce non-working calls is of great help! ¿Por cierto, puedes modificar el título? La mitad de las personas viven aquí con un problema para verificar una firma (las otras una problema para firmar), por lo tanto, "invalid signature" no transmte información. |
Not sure if this is related but I get the "invalid signature" error from v1.4.1 onwards (using passport-saml v1.3.3) |
I hade the same problem and to sove this you have to add xpath as
on #122 explains that |
It seems that this issue has been resolved. If this is not the case, please reply to reopen. |
Buenos días estoy tratando de firmar un xml cuando coloco
sig.addReference(xpath, ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"],"http://www.w3.org/2001/04/xmlenc#sha256","","","",false)
lo valida pero cuando cuando coloco
sig.addReference(xpath, ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"],"http://www.w3.org/2001/04/xmlenc#sha256","","","",true)
me devuelve el siguiente error
[ 'invalid signature: for uri calculated digest is oUP1akifFqmjvHDVtpeQC8h0l9LqL1YLf+PPOxzj8Rs= but the xml to validate supplies digest yY+OHWVStrsKgaqmoVNfy3hHoZf1lXomRKflwW4bhc0=' ]
lo que quiero es quitar Id="_0" y
URI="#_0" dejarlo URI=""
The text was updated successfully, but these errors were encountered: