We have been struggling to figure out why the verification fails for the signature of a SAML response from Client. We are getting the following error no matter how many trails we have made to resolve the issue. This is extremely priority issue which have been struggling to get through since 4 days.
ComponentSpace.SAML2.SAMLSignatureException: Failed to verify the XML signature. ---> System.Security.Cryptography.CryptographicException: Malformed reference element.
I strongly believe that the signature that was sent in the SAML response by clients is having some issue and hence is unable to verify it with the Certificate that clients has shared with us. But we are not sure of a way to prove this point.
we are using the following .net version of componentspace to verify the signature.
Assembly ComponentSpace.SAML2, Version=220.127.116.11, Culture=neutral, PublicKeyToken=7c51d97b3a0a8ff9
I am attaching the SAML response XML and tried to attach the certificate unfortunately I couldn't. Request you to please take a look at the SAML respone as soon as you can and let us know what could be the reason. Appreciate your help and thanks in advance.
Also please let us know if there is away to verify the signature with the certificate that is installed from our system.