PVWA - SAML not working - certificate not verifying
Symptom
When logging into SAML user gets "Authentication failure. Please contact your Administrator"
In the PVWA.App.Log, a message like this appears:-
2025-03-28 15:07:17,431 || ERROR || 40 || || || dcf80b64-0d6b-4123-9fda-b9c5d42cf750 || Failed to receive an SSO response from the identity provider || ComponentSpace.SAML2.Exceptions.SAMLSignatureException: The SAML response signature failed to verify.
Environment
12.6;13.0;13.2;14.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Installation
Cause
There is a mismatch between the certificate string in the saml.config file and the certificate string returned by the IdP in the SAML Response.
Resolution
Check the SAML Response from the IdP using an appropriate application (i.e. from a har capture using the browser developer tools). The SAML Response will need to be decoded using the appropriate tool.
In the decoded SAML Response there should be a section like this:-
<ds:SignatureValue>Iuh8rN.......</ds:SignatureValue>
</ds:Signature>
<saml:Subject>
There should be an <X509 Certificate> element between </ds:Signature> and <saml:Subject> containing a certificate string
Ensure that this string matches the one specified in saml.config. If the <X509 Certificate> element is missing, check with the IdP that it is configured to send the certificate.