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

Java upgrade in AEM

ariesyinn
Level 3
Level 3

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

Yes you need to install java certificate for the same.

View solution in original post

4 Replies
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

Yes you need to install java certificate for the same.

View solution in original post

ariesyinn
Level 3
Level 3

Hi @Umesh_Thakur

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

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

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.