Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Getting error for certificate while testing dispatcher flush agent.

Umesh_Thakur
Community Advisor
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
Umesh_Thakur
Correct answer by
Community Advisor
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
vanegi
Employee
Employee

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

Umesh_Thakur
Community Advisor
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.

Anudeep_Garnepudi
Community Advisor
Community Advisor

@Umesh_Thakur 

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

Umesh_Thakur
Community Advisor
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.

 

Umesh_Thakur
Correct answer by
Community Advisor
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