Send HTTPS request from AEM

pankajc23172579

02-12-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

jbrar

Employee

02-12-2019

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