denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation
MIT License
190 stars 52 forks source link

Azure SQL fails because of too simple certificate validation #148

Closed aersam closed 1 year ago

aersam commented 1 year ago

Azure SQL uses a wildcard certificate:

image

However in tls.py, wildcard certificateds or multiple entries separated by , are not supported

There's even a TODO marker for that, so I'll do a PR with a simple implementation that works for me - and I think it's secure