Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newer versions of mssql-jdbc require certificate #16

Open
TimoKramer opened this issue May 22, 2023 · 0 comments
Open

Newer versions of mssql-jdbc require certificate #16

TimoKramer opened this issue May 22, 2023 · 0 comments

Comments

@TimoKramer
Copy link
Member

When updating to newer versions of mssql-jdbc, when connecting to mssql it throws:

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".

The newer versions require a certificate for connection or a setting to trust any cert...needs investigation.

For starters: https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-with-ssl-encryption?view=sql-server-ver16#configuring-the-connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant