PVWA - SAML Authentication Failure after changing IdP signing encryption algorithm
Symptom
After changing the IdP assertion signing encryption algorithm to ecdsa-sha256 users get an authentication failure. The following error appears in the PVWA logs:-
Failed to receive an SSO response from the identity provider || ComponentSpace.SAML2.Exceptions.SAMLSignatureException: The SAML assertion signature failed to verify.
The certificate string in the saml.config file and the certificate string returned in the SAML response from the IdP match exactly
After enabling extra SAML tracing by following this document - https://cyberark.lightning.force.com/lightning/r/Knowledge_Article__kav/ka32J000000bmLLQAY/view?ws=%2Flightning%2Fr%2FCase%2F500Ht00001furfTIAQ%2Fview - an error like the following appears in the new log file:-
Exception: ComponentSpace.SAML2.Exceptions.SAMLSignatureException: Failed to verify the XML signature. ---> System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied.
Environment
12.2;12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Password Vault Web Access
Cause
PVWA versions 14.2 and lower use ComponentSpace libraries v4.2.0 and below which do not support ecdsa signature algorithms (See https://www.componentspace.com/documentation/saml-for-asp-net/ComponentSpace%20SAML%20for%20ASP.NET%20Release%20Notes.pdf)
Resolution
In order to support ecdsa signature signing algorithms PVWA should be running at v14.4 and higher. These versions use the ComponentSpace v7.0.0 libraries.
Ecdsa support was added to ComponentSpace libraries from version 4.6.0