Get error when use sha256: Unable to verify the XML signature. ---> SignatureDescription could not be created for the signature algorithm supplie

0
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.
edited 8/15/2019 8:49:51 AM
asked 8/15/2019 8:34:28 AM
add a comment

1 Answers

0
Please take a look at this topic: [https://doc.componentpro.com/ComponentPro-Saml/working-with-sha-256][1] [1]: https://doc.componentpro.com/ComponentPro-Saml/working-with-sha-256
 
answered 8/26/2019 4:07:24 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged .NET Framework (Full) or ask your own question.