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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Send HTTPS request from AEM

pankajc23172579
Level 1
Level 1

Hi AEM Community,

I have a problem sending an HTTPS requests from my AEM instance to other endpoints. If I send an HTTP, then everything is fine, but when an HTTPS then I got an exception:

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

So:

http://mysite.com/blog/get     -  is fine

https://mysite.com/blog/get   -  throws an exception

Thanks for your help in advance.

1 Accepted Solution
jbrar
Correct answer by
Employee
Employee

For Self signed certificate you can follow the steps under "Generating a Private Key/Certificate Pair to Use with the Wizard" at [1]

On a live system, the certificate should be provided by your IT team

[1] SSL By Default

View solution in original post

4 Replies
jbrar
Employee
Employee

Looks like AEM is not able to find the valid certificate for the https request. Make sure the certificate is valid. Also, Have you tried the SSL By Default setup?

[1] SSL By Default

Vish_dhaliwal
Employee
Employee

You can check if your certificate is in the Keystore by running the following command:

keytool -list -keystore "%JAVA_HOME%/jre/lib/security/cacerts"

pankajc23172579
Level 1
Level 1

So, could you please tell, how can I set up my certificate?

jbrar
Correct answer by
Employee
Employee

For Self signed certificate you can follow the steps under "Generating a Private Key/Certificate Pair to Use with the Wizard" at [1]

On a live system, the certificate should be provided by your IT team

[1] SSL By Default

View solution in original post