Forums, Documentation & Knowledge Base - ComponentSpace

ASP.Net: Saml XML signature failure


https://componentspace.com/forums/Topic11533.aspx

By Manikumar - 4/5/2021

Hello team,

We have recently migrated our windows servers from 2008 to 2019 and the component space library (componentspace.saml2.dll) from version 2.4.0.13 to 4.5.0.0. Our .Net framework version was also updated from 4.0.3 to 4.7.2.
Now the issue is, in the environment where we have installed the certificate that uses sha256RSA to generate the signature, getting an exception with the error  "Failed to generate the XML signature. ---> System.Security.Cryptography.CryptographicException: Invalid algorithm specified." However this works fine in the old environment (2008 windows server).

Here are the screenshots for the certificate we have been using in our environment. Request you to please take a look and guide us in the right direction of what next steps to be taken and what could be the issue happening in the new environment.







Thanks,
Manikumar Ponnuru.
By ComponentSpace - 7/12/2021

I wasn't able to verify the signature either. I noticed that the XML is formatted with newlines and other whitespace characters. If this formatting occurred after signing it will have invalidated the signature.

Please enable SAML trace and send the generated log file as an email attachment to [email protected] mentioning your forum post.

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace