I've download https://github.com/onelogin/dotnet-saml and am testing against an internal IdP. Initially I thought the error was because of the certificate being SHA256 (since the one referenced in their code is a 1024-bit SHA1). I changed the IdP certificate to match that criteria, but still receive the error below after authenticating at the IdP.
I'm new to .net, but have been writing PHP for 10+ years.
Line 88: return signedXml.CheckSignature(certificate.cert, true);
Source File: c:\inetpub\dotnet-saml-master\App_Code\Saml.cs Line: 88
[CryptographicException: SignatureDescription could not be created for the signature algorithm supplied.]
System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key) +240118
System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key) +44
System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly) +532
OneLogin.Saml.Response.IsValid() in c:\inetpub\dotnet-saml-master\App_Code\Saml.cs:88
_Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\dotnet-saml-master\Consume.aspx.cs:28
System.Web.UI.Control.OnLoad(EventArgs e) +109
System.Web.UI.Control.LoadRecursive() +68
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498