Symptom
- SAML login requests fail with HTTP 401 errors (HTTP Status 401 – Unauthorized).
- Logs show SignatureException with message: "Unable to evaluate key against signature".
Exception: org.opensaml.xmlsec.signature.support.SignatureExceptionMessage:Unable to evaluate key against signature
- SAML assertion validation logs show NotBefore/NotOnOrAfter checks evaluated against skewed time.
- System clock drift observed (>30 minutes).
- Application pods report "No route to host" when connecting to internal ZooKeeper nodes.
- Affected ZooKeeper endpoint observed: zookeeper-2.zookeeper:2181.
Stacktrace:org.opensaml.xmlsec.signature.support.impl.provider.ApacheSantuarioSignatureValidationProviderImpl.validateorg.opensaml.xmlsec.signature.support.SignatureValidator.validateorg.opensaml.xmlsec.signature.support.impl.BaseSignatureTrustEngine.verifySignatureorg.opensaml.xmlsec.signature.support.impl.ExplicitKeySignatureTrustEngine.doValidateorg.opensaml.xmlsec.signature.support.impl.BaseSignatureTrustEngine.validate
Read more...
Environment
SAP Commerce Cloud 2211-jdk21
Product
SAP Commerce Cloud all versions
Keywords
saml, http 401, unauthorized, signatureexception, signature validation, opensaml, spring security saml, clock skew, notonorafter, notbefore, metadata, certificate, saml trace, storefront , KBA , CEC-SCC-CLA-ENV-EMG , Environment Management , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview