-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDS8 Add Server Certificate Support #1822
TDS8 Add Server Certificate Support #1822
Conversation
…the SNIAuthProviderInfo
Codecov ReportBase: 69.25% // Head: 69.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1822 +/- ##
==========================================
- Coverage 69.25% 69.22% -0.03%
==========================================
Files 292 292
Lines 61604 61727 +123
==========================================
+ Hits 42662 42733 +71
- Misses 18942 18994 +52
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNITcpHandle.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnectionString.cs
Outdated
Show resolved
Hide resolved
doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml
Outdated
Show resolved
Hide resolved
doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: David Engel <[email protected]>
/azurepipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Co-authored-by: David Engel <[email protected]>
src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs
Outdated
Show resolved
Hide resolved
…om/lcheunglci/SqlClient into TDS8-Add-ServerCertificate-Support
the failure seems not relevant .Connection Open() without retries took longer than expected (2 seconds) on Mac machine. |
The mac failures seem to intermittently occur on the pipeline in all the PRs recently, so I just have to re-run it until it succeeds. |
This adds the parameter
Server Certificate
to the connection string. The server certificate is a local path to the SSL Certificate that has been download from the server. This certificate will be manually validated during the SSL Handshake. When HostNameInCertificate is specified with ServerCertificate, HNIC will take precedence. I added very basic functional test to check for the connection string parameter. Additional manual tests will be added in a later PR.