SQLServerException: The driver could not establish a secure connection

HikariPool-1 - Exception during pool initialization.
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”.

Hi,

this means your Java keystore is missing the certs of your organization.
This will bring up a lot of posts with the same problem
https://community.sonarsource.com/search?q=PKIX%20path%20building%20failed

Gilbert

1 Like