Error in logs:
Caused by: 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
Solution:
keytool -importcert -file "D:\SSL-Certificate\filename.cer" -alias randomaliasname -keystore JAVA_HOME/jre/lib/security/cacerts -storepass changeit
- Now apply the same certificate on JRE folder as well