Skip to content

Conversation

DavoudEshtehari
Copy link
Contributor

@DavoudEshtehari DavoudEshtehari commented Jan 7, 2022

fixes #1434

When connecting to a server, if a protocol lower than TLS 1.2 is negotiated, a security warning is output to the console. This warning can be suppressed on SQL connections with Encrypt = false by enabling the following AppContext switch on application startup:

Switch.Microsoft.Data.SqlClient.SuppressInsecureTLSWarning

@JRahnama JRahnama modified the milestones: 5.0.0-preview1, 4.0.1 Jan 11, 2022
@JRahnama JRahnama merged commit 1ad4af3 into dotnet:main Jan 11, 2022
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Jan 13, 2022
…itch (dotnet#1457)

# Conflicts:
#	src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs
#	src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/TdsParser.cs
@DavoudEshtehari DavoudEshtehari modified the milestones: 4.0.1, 5.0.0-preview1 Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Turn Off "Security Warning "The negotiated TLS 1.0..." if Encrypt=false passed in Connection String
4 participants