question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Signature validation failed. Everything seems right, though.

See original GitHub issue

I upgrade to MacOS the other day and revisisted an old project. I now get “Signature validation failed.” I tried upgrading to the 2.2.0 release, but get the same thing. Do you all see anything wrong with this?

All values printed from variables defined in validate_node_sign

Cert

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

validatecert

False

signature_node

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xs="http://www.w3.org/2001/XMLSchema"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#id631044246120230029603131"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="xs"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>...</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>...</ds:SignatureValue><ds:KeyInfo><ds:X509Data><ds:X509Certificate>...</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature>

Node verification error:

('verifying failed with return value', -1)

Signature validation failed. SAML Response rejected

xmldsig.c:871(xmlSecDSigCtxProcessKeyInfoNode) errno=45
xmldsig.c:565(xmlSecDSigCtxProcessSignatureNode) subject=xmlSecDSigCtxProcessKeyInfoNode
xmldsig.c:366(xmlSecDSigCtxVerify) subject=xmlSecDSigCtxSignatureProcessNode

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
edufelipecommented, Jun 22, 2017

@travelton I did! All I had to do was update libxmlsec1 to version 1.2.4. It automatically started working on Mac 😃

0reactions
poojatedcommented, Feb 25, 2020

after adding prefix in saml xml doc i am getting signature validation failed error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signature validation failed. Everything seems right, though. #166
I upgrade to MacOS the other day and revisisted an old project. I now get "Signature validation failed." I tried upgrading to the...
Read more >
Received invalid SAML response: Signature validation failed ...
For cause #1: Check that the X509 certificate configured in Confluence is the same as the one the IdP uses, which you can...
Read more >
Signature validation failed. Reference validation failed
In order to fix it, verify that the public certificate of the settings that you have register for the IdP is the right...
Read more >
SAML Response Assertion signature validation failed.
Hi. We was configured Azure how identity provider to GSuite accounts. All flow works fine but the response that send Azure to Gsuite...
Read more >
Code signature validation failed f… | Apple Developer Forums
I have set the right entitlements as far as I know . is this error about entitlements or signature that is not obvious...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found