Expand my Community achievements bar.

SOLVED

Java upgrade in AEM

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes you need to install java certificate for the same.

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Yes you need to install java certificate for the same.

Avatar

Level 4

Hi @Umesh_Thakur

What do you mean installing java certificate for the same? I don't get it. Could you mind to elaborate more? 

Avatar

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

Avatar

Level 4

Hi @Umesh_Thakur,

I have www.aemexamplewebsite.com and once I click a button on aemexamplewebsite, it will go to third party login page www.abcwebsite.com.

As per your guide, I have exported the certificate from www.abcwebsite.com. and added in AEM java cacerts. But, I still cannot login successfully.