Attempt to connect jdbc to SQL Server.
The following error occurs when using the mssql jdbc driver:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Is it a compatibility issue between SQL Server and JDBC driver version? Or what's the problem?
However, the option trustServerCertificate=true resolves the issue using the mssql jdbc driver.
According to , my jdbc driver is 10.2, jre is 1.8 and sqlserver is 2018.
I want to know what the difference is between the two drivers.