Subject: Get error when use sha256: Unable to verify the XML signature. ---> SignatureDescription could not be created for the signature algorithm supplie
Date: 2019-08-15 08:49:51
From: jason
Source: get-error-use-sha256-unable-verify-xml-signature-signaturedescription-not-created-signature-algorithm-supplie
----------------------------------------------------------------------

Hi,

When we use the sha256 as the algorithm for cert, receive the error when validate the signature:
Unable to verify the XML signature. ---> SignatureDescription could not be created for the signature algorithm supplied.
   at ComponentPro.Saml.SamlUtil.c_8630ad5d(XmlElement , AsymmetricAlgorithm , SignedXml )
   at AssertionConsumer.processSuccessResponse(Response samlResponse, String relayState)

processSuccessResponse function is:

    Assertion samlAssertion = (Assertion)samlResponse.Assertions[0];

    X509Certificate2 idpX509Certificate = GetX509Certificate();//get X509Certificate from our DB

    if(!samlResponse.Validate(idpX509Certificate)) 
    {
        throw new Exception("The SAML response signature failed to verify.");
    }

The error returned when we run to **Validate** function.

our ComponentPro.Saml.dll version is 7.0.40.226.

Please help me to fix this issue.

----------------------------------------------------------------------

Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index