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". ClientConnectionId: blahblah [SQL State=08S01]
Often resolving PKIX error involves installing the server's self-signed cert to Java's cacerts file. But here's the rub: I have a Groovy program on the same platform that connects to and works with the SQL Server's data (gets its connection via groovy.sql.Sql.newInstance). The Groovy program runs on top of the same Java 11 runtime and therefore (should) use the same cacerts file.
Still working on this. Sure would like to take advantage of SQL Workbench/J's WbCopy program to move some ginormous tables to postgres!
cheers, Marco