I have a small spring boot application that has to connect to a Sql Server DB. When I run the application with spring-boot-starter-parent version 2.6.* everything works. But when I switch to version 2.7.* I get this error:
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". ClientConnectionId:66a65f3c-2b09-4a06-975a-3e3ea35a11ee
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Any suggestion on which could be the problem? Thanks