Skip to content

Unable to Disable TLS / Use TLS 1.0 with SQL Exporter for MSSQL 2008 R2 SP1 #715

Closed Answered by burningalchemist
nmhieu054 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @nmhieu054,

Thanks for reaching me out. 👍 Let's try to debug it together, as it would be a bit problematic for me to find the access to MSSQL2008 to reproduce the issue.

The driver used for connections is https://github.com/microsoft/go-mssqldb. In the sql_exporter code we don't do any custom connection handling, so it all comes from the underlying driver. That should reduce our scope.

The first thing attracted my attention in your config is missing ? after the dbname which delimits the connection parameters from the rest of DSN (you use & instead which allows us to add more, but ? is required).

According to the driver docs, we indeed should use encrypt=disable parameter to disable en…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nmhieu054
Comment options

Answer selected by nmhieu054
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #714 on April 10, 2025 09:41.