MSSL replication failures in AEM 6.5.1 due to missing SSL client certificate authentication handler
This article explains how to resolve MSSL replication failures in Adobe Experience Manager (AEM) 6.5.1 when the SSL client certificate authentication handler bundle is missing, including steps to address related KeyStore initialization errors.
Description description
Environment
- Adobe Experience Manager (AEM) 6.5.1
Issue/Symptoms
- MSSL (Mutual SSL) replication fails even when HTTPS and
KeyStore/TrustStoreare configured correctly. - Replication attempts result in 401 Unauthorized errors.
- The system may fall back to Basic authentication.
- After resolving the missing handler, a
KeyStoreNotInitialisedExceptionoccurs if service user mapping fortruststoreaccess is not configured.
Cause
The required SSL client certificate authentication handler bundle is missing from the AEM 6.5.1 environment. Additionally, missing service user mapping for truststore access can cause KeyStore initialization errors.
Resolution resolution
To fix MSSL replication failures caused by a missing SSL client certificate authentication handler, follow these steps:
- Check if the SSL client certificate authentication handler bundle is present in your AEM 6.5.1 environment.
- If the bundle is missing, obtain and install the appropriate fix for your AEM version through Adobe Support.
- Deploy the fix provided by Adobe Support to your AEM 6.5.1 environment, following their instructions.
- After deploying the fix, monitor the logs to confirm that the handler is now detecting
X.509certificates (look for log entries indicating successful certificate detection via thejakarta.servlet.request.X509Certificateattribute). - If you encounter a
KeyStoreNotInitialisedExceptionwith a message such as Uninitialised system trust store, update the OSGi configuration fororg.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amendedto includecom.adobe.granite.auth.cert=truststore-reader-serviceto add a service user mapping fortruststoreaccess. - Restart the affected bundles or the AEM instance, if necessary.
- Retest MSSL replication to confirm that client certificate authentication and replication are working as expected.
recommendation-more-help
experience-cloud-kcs-help-kbarticles