0

I am facing an issue while upgrading my Spring Boot from 2.6.11 to 2.7.7. I upgraded the Microsoft SQL Server JDBC driver from 7.4.1.jre to 10.2.jre8.

implementation 'com.microsoft.sqlserver:mssql-jdbc:10.2.jre8'

I also added encrypt=false to application.properties.

Did anyone experience a similar problem. If someone could point out where I'm going wrong, it would be a huge help.

Error:

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
amit
  • 1
  • 1
  • 1
    "_Did anyone experience a similar problem?_" [Yes they did](https://www.google.com/search?q=unable+to+find+valid+certification+path+to+requested+target+site:stackoverflow.com). There are various questions, with answers which are worth researching, as a starting point. – andrewJames Feb 06 '23 at 02:19

0 Answers0