denisenkom / go-mssqldb

Microsoft SQL server driver written in go language
BSD 3-Clause "New" or "Revised" License
1.82k stars 495 forks source link

How do we connect to a TLS1.2 restricted MSSQL database. #692

Open gowtham500 opened 3 years ago

gowtham500 commented 3 years ago

Hey team,

The examples in the docs work fine, but when I use the driver to connect to a TLS1.2 restricted MSSQL database I get error Prepare failed:TLS Handshake failed: cannot read handshake packet: EOF

I tried using encrypt=True, but not sure which TLS protocol is driver issuing behind the scenes.

Any examples on how we can connect to a TLS1.2 restricted DB.