Getting error for certificate while testing dispatcher flush agent.

Avatar

Avatar

Umesh_Thakur

MVP

Avatar

Umesh_Thakur

MVP

Umesh_Thakur
MVP

25-01-2021

Dear Members,

Today I was creating one flush agent on on of my lower environment, after adding all the required fields when I click on the Test Connection button I got:

Error while sending request: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2021-01-25 08:51:38 - Replication (TEST) of /content not successful: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Conversation follows

When I check certificates on the dispatcher server I found all the certificates were already there so if anyone has faced such kind of issue please suggest what needs to be done to overcome this issue.

Waiting for your response.

Thanks

Umesh Thakur
 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Umesh_Thakur

MVP

Avatar

Umesh_Thakur

MVP

Umesh_Thakur
MVP

27-01-2021

It was associated with JRE was not recognising the certificates provided by the dispatcher so that was the issue.

To make it work:

First I downloaded the certificate from the browser and deployed it on the AEM server and use keytool commad to import that certificate to the JRE cacert path.

this way it worked fine for me.

Answers (2)

Answers (2)

Avatar

Avatar

Anudeep_Garnepudi

MVP

Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
MVP

25-01-2021

@Umesh_Thakur 

This is no related to dispatcher or AEM, this is relate to JRE. Try reinstalling Java once. That might help.

Avatar

Avatar

vanegi

Employee

Avatar

vanegi

Employee

vanegi
Employee

25-01-2021

Is it a local cert? Look at the Transport tab, then choose Relaxed in SSL field. Let me know if that helps.