Trying to access the SAML application URLs for an IdP-initiated transaction.
The error displayed on the browser is a 403 Forbidden error and the Policy Server reports:
smps.log:
[31839/3992509296][Tue Jul 25 2017 13:03:16][AssertionGenerator.java][ERROR][sm-FedServer-00130] postProcess() returns fatal error. <Response ID="_9068337c7b67a02d32f299d8358f112a23dc" IssueInstant="2017-07-25T13:03:16Z" Version="2.0" xmlns="urn:oasis:names:tc:SAML:2.0:protocol">
<ns1:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" xmlns:ns1="urn:oasis:names:tc:SAML:2.0:assertion">http://idp.example.com/app/portal</ns1:Issuer>
<Status><StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Responder"/><StatusMessage>Error Signing Assertion.</StatusMessage></Status></Response>
Policy Server 12.8.x
Web Agent 12.52.x
Web Agent Option Pack 12.52.x
SAML 2.0
The keys that were used to sign the assertion were corrupted.
To check the certificate validity:
# smkeytool.sh -export -alias <alias> -outfile <output-filename> -v# openssl x509 -in <output-filename> -text -nooutImporting new functional private keys into CDS (Certificate Data Store) resolved the issue (1).
If there's a problem to update or remove the primary certificate, set the new certificate as "Secondary Signing Private Key Alias" and the "Secondary Verification Certificate Alias" (2)(3).