Skip to content

Newer versions of mssql-jdbc require certificate #16

@TimoKramer

Description

@TimoKramer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions