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

SQL Server ODBC Driver 18: The certificate chain was issued by an authority that is not trusted #390

Closed
sm-shaw opened this issue Jul 14, 2022 · 1 comment · Fixed by #406
Assignees
Labels
enhancement New feature or request

Comments

@sm-shaw
Copy link
Contributor

sm-shaw commented Jul 14, 2022

By default, HammerDB uses ODBC Driver 17 for SQL Server, when switching to ODBC Driver 18 the following message is received:

trustserver

The following posts indicate the cause and the fix.

https://stackoverflow.com/questions/71688125/odbc-driver-18-for-sql-serverssl-provider-error1416f086
https://stackoverflow.com/questions/17615260/the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-when-conn

It looks like encrypt=yes is now default from ODBC 18 whereas previously it was not.

So the enhancement needed for ODBC Driver 18 is to add a Trust Server Certificate option as shown is SSMS

trustssms

This option will also be in the XML/dict and will add TrustServerCertificate=yes to the connect string.

@sm-shaw sm-shaw self-assigned this Jul 14, 2022
@sm-shaw
Copy link
Contributor Author

sm-shaw commented Jul 14, 2022

Fix has been tested by manually adding "TrustServerCertificate=yes" to the connect string with ODBC Driver 18 and confirmed that this connection is made without receiving the error.

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

Successfully merging a pull request may close this issue.

1 participant