Java upgrade in AEM | Community
Skip to main content
April 20, 2021
Solved

Java upgrade in AEM

  • April 20, 2021
  • 1 reply
  • 1499 views

Hi all,

After I have upgraded java minor version, there was an error  called unable to find valid certification path. 

Do need to import any keystore to java cert?

Error

02.04.2021 05:49:24.727 *ERROR* POST /content/web/my-**********.commongateway_auth.html HTTP/1.1] @@@@ common gateway auth servlet Encountered exception : @@@@@@.@@@.SDK.Exceptions.AIFException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetStartingValidation completedJSON Request created.

  • Do I need to add any AEM jks into java cacer? Do AEM package come along with default jks?
  • As I am using third party SDK, should I add third party jks?

 

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Umesh_Thakur

Yes you need to install java certificate for the same.

1 reply

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
April 20, 2021

Yes you need to install java certificate for the same.

Umesh_Thakur
Community Advisor
Community Advisor
April 21, 2021
it seems like your java, installed on your machine, is not able to establish a connection with the commongateway.html due to untrusted certificate from you jre keystore. so you are getting this exception. please see the similar issue and solution for the same on below article https://tumesh65.medium.com/handling-javax-net-ssl-sslhandshakeexception-in-aem-in-interserver-communication-82f5060b7399