Skip to content

Commit 910688a

Browse files
MichelZbenrr101
authored andcommitted
Remove comment about IPv6 & Cert as this now works in NET8+
1 parent 04bce8e commit 910688a

File tree

1 file changed

+0
-5
lines changed
  • src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectionTestWithSSLCert

1 file changed

+0
-5
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectionTestWithSSLCert/CertificateTest.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ public void OpeningConnectionWitHNICTest()
141141
connection.Open();
142142
Assert.Equal(ConnectionState.Open, connection.State);
143143

144-
// Ipv6 however causes name mismatch error
145-
// In net6 Manged SNI does not check for SAN. Therefor Application using Net6 have to use FQDN as HNIC
146-
// According to above no other hostname in certificate than FQDN will work in net6 which is same as SubjectName in case of RemoteCertificateNameMismatch
147-
// Net7.0 the new API added by dotnet runtime will check SANS and then SubjectName
148-
149144
builder.DataSource = IPV6 + SlashInstanceName;
150145
builder.HostNameInCertificate = Dns.GetHostEntry(Environment.MachineName).HostName;
151146
builder.Encrypt = SqlConnectionEncryptOption.Mandatory;

0 commit comments

Comments
 (0)