Skip to content

Commit 2c70498

Browse files
author
John Luo
authored
Fix TLS protocols used in tests (#10483)
1 parent 3f9f406 commit 2c70498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/HttpsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public async Task OnAuthenticate_SeesOtherSettings()
408408
using (var sslStream = new SslStream(connection.Stream, true, (sender, certificate, chain, errors) => true))
409409
{
410410
await sslStream.AuthenticateAsClientAsync("127.0.0.1", clientCertificates: null,
411-
enabledSslProtocols: SslProtocols.None,
411+
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
412412
checkCertificateRevocation: false);
413413
}
414414
}
@@ -447,7 +447,7 @@ public async Task OnAuthenticate_CanSetSettings()
447447
using (var sslStream = new SslStream(connection.Stream, true, (sender, certificate, chain, errors) => true))
448448
{
449449
await sslStream.AuthenticateAsClientAsync("127.0.0.1", clientCertificates: null,
450-
enabledSslProtocols: SslProtocols.None,
450+
enabledSslProtocols: SslProtocols.Tls11 | SslProtocols.Tls12,
451451
checkCertificateRevocation: false);
452452
}
453453
}

0 commit comments

Comments
 (0)