URL datasource - SSLHandshakeException when configuring URL datasource with HTTPS and SSL


Symptoms



I can see the error similar to this one:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed




Cause

When connecting to a remote system over HTTPS, things can go wrong and you can face a SSL certificate validity issue.



Resolution

In this case, and only if you trust the remote service, you will need to deal with certificates. This documentation by Atlassian covers this subject and you can find all you need here : Connecting to SSL services