How to use ssl in pyodbc #1160
-
I want to connect to the MS-SQL server with "TrustServerCertificate": "no," but I received an error: SSL Provider: [error:0A000086:SSL routines::certificate verify failed:unable to get local issuer certificate] (-1) (SQLDriverConnect)') So I want to ask where I need to set the certificate on the client machine. I used linux OS. It's working with "TrustServerCertificate": "yes" Currently I am using SQlalchemy but I also checked independently with pyodbc and got same error. Sample Code which i executed:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is unrelated to pyODBC. If you're using the official Microsoft ODBC Driver for SQL Server, see here: |
Beta Was this translation helpful? Give feedback.
This is unrelated to pyODBC. If you're using the official Microsoft ODBC Driver for SQL Server, see here:
https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/connection-string-keywords-and-data-source-names-dsns
Look for the "Default Certificate Trust Store Location" table.