Expand my Community achievements bar.

SOLVED

Getting error for certificate while testing dispatcher flush agent.

Avatar

Community Advisor

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
 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

5 Replies

Avatar

Employee

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

Avatar

Community Advisor

I am not sure which cert. it is talking about, I checked with Relaxed SSL and Allowed Expired Certs. as well but it did not worked for me.

Avatar

Community Advisor

@Umesh_Thakur 

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

Avatar

Community Advisor

Hi Anudeep,

I have not tried with the java re-installing but I will,

It says something Not able to handshake to the dispatcher server.

 

Avatar

Correct answer by
Community Advisor

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.