-
Notifications
You must be signed in to change notification settings - Fork 314
Fix | Fix certificate validation #2439
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
Closed
Closed
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
95c67b1
Initial merge from certValidation and certTest branch from David-Enge…
arellegue ed691c5
Initial merge from certValidation and certTest branch from David-Enge…
arellegue 5452a9c
Merge branch 'main' into FixCertificateValidation
arellegue fa54829
Added unit test in Manual Tests.
arellegue e8d3e54
Merged latest project files from upstream.
arellegue 67f2091
Merge branch 'main' into FixCertificateValidation
arellegue cf5739c
Fixed project files.
arellegue 267acdd
Fix script for linux to install openssl first.
arellegue af9a1ff
Add force installation of openssl from PSGallery.
arellegue 3c682cc
Removed OpenSsl installation.
arellegue 45ad5f8
Add 1 second delay for the certificate to be created.
arellegue 3522200
Add debug to display certificate location.
arellegue 78f75e4
Add print working directory to script.
arellegue 9d417da
Add cat to display content of result.txt.
arellegue 60768f0
Add parameter for the location of certificate.
arellegue 7136a33
Fix script parameters.
arellegue d7423ed
Fix script so that if FQDN is over 64 characters then don't use it as…
arellegue 07a2332
Without specifiying CN, the openssl command becomes interactive. Thu…
arellegue aa13fb1
Fix string length test to -gt 64.
arellegue 4369b9e
Add the installation of openssl for linux.
arellegue 1c39823
Clean-up unwanted comments from scripts and unit test.
arellegue aa0dfc2
Removed unnecessary using.
arellegue 2a4d831
Added byte array comparer function.
arellegue e7c1e48
Change tests expected results.
arellegue d1a1bab
Use AsSpan().SequenceEqual in ByteArrayCompare function.
arellegue 7f1806a
Drop ByteArrayCompare function and use inline .AsSpan().SequenceEqual…
arellegue 523b921
Merged upstream MDS solution file.
arellegue 131450e
Bring back TrySNIEventScope.Create inside ValidateServerCertificate i…
arellegue 2c5b5fd
Merge netfx MDS project file.
arellegue 1b6371a
Removed one second delay to wait for the creation of certificate to c…
arellegue d1a9880
Added license information to new class files.
arellegue 6f198e7
Re-merge Manual Tests project file.
arellegue cb7cc8e
Change parameter names. Added more set of parameters.
arellegue c065a90
Fix some wrong expecated result in the set of parameters.
arellegue 0f1d82f
Ammend makepfxcert.ps1 desciption.
arellegue dfbc847
Applied suggested change in the comment at line 141 of SNICommon.cs.
arellegue 9d8c7d9
Added extra line as suggested.
arellegue 9095e71
Merged from upstream main.
arellegue f301515
Applied suggested changes.
arellegue e413d9c
No change just trigerring pipeline run for this PR.
arellegue db6656d
Revert Nuget.config changes.
arellegue 8821999
Merge branch 'main' into FixCertificateValidation
arellegue 804473f
Merge branch 'main' into FixCertificateValidation
arellegue 3341d76
Change default Tds Server encryption to not supported in Functional T…
arellegue 5e8bd99
Restore original TestTdsServer.cs in Functional Test.
arellegue 7ee63c2
Changed TdsServer default encryption to None in Manual Tests.
arellegue b5539d1
Actually, make the test TdsServer default Encryption to NotSupported …
arellegue 2dd6fb1
Removed blank line from TestTdsServer.cs.
arellegue b6770d3
Make Windows and Linux certificate key length to be 4096.
arellegue 43b940b
Commenbt out dpkg-reconfigure in the certificate maker script.
arellegue df87444
Update script that creates certificate.
arellegue e485ce4
Merge branch 'main' into FixCertificateValidation
arellegue 81b5a09
Added unit test wrapper for Windows and Unix. MaxOS will be excluded.
arellegue faf2b14
Updated script so that the dpkg-reconfigure is noninteractive.
arellegue e9adb82
Add comment that possible value for certificate includes a mismatched…
arellegue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
248 changes: 103 additions & 145 deletions
248
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNICommon.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/ConnectionTestParameters.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.SqlServer.TDS.PreLogin; | ||
|
||
namespace Microsoft.Data.SqlClient.ManualTesting.Tests.DataCommon | ||
{ | ||
public class ConnectionTestParameters | ||
{ | ||
public SqlConnectionEncryptOption Encrypt { get; set; } | ||
public bool TrustServerCertificate { get; set; } | ||
public string Certificate { get; set; } | ||
public string HostNameInCertificate { get; set; } | ||
public bool TestResult { get; set; } | ||
public TDSPreLoginTokenEncryptionType TdsEncryptionType { get; set; } | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.