Skip to content

Commit f7fe3c7

Browse files
committed
Fix tests
1 parent cc5bc54 commit f7fe3c7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,13 @@ void ConfigureListenOptions(ListenOptions listenOptions)
362362
}
363363

364364
[Fact]
365-
public async Task DoesNotSupportTls10()
365+
public async Task Tls10CanBeDisabled()
366366
{
367367
void ConfigureListenOptions(ListenOptions listenOptions)
368368
{
369369
listenOptions.UseHttps(options =>
370370
{
371+
options.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls12;
371372
options.ServerCertificate = _x509Certificate2;
372373
options.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
373374
options.AllowAnyClientCertificate();

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@ public async Task ClientAttemptingToUseUnsupportedProtocolIsLoggedAsDebug()
366366
new TestServiceContext(LoggerFactory),
367367
listenOptions =>
368368
{
369-
listenOptions.UseHttps(TestResources.GetTestCertificate("no_extensions.pfx"));
369+
listenOptions.UseHttps(TestResources.GetTestCertificate("no_extensions.pfx"), httpsOptions =>
370+
{
371+
httpsOptions.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11;
372+
});
370373
}))
371374
{
372375
using (var connection = server.CreateConnection())

0 commit comments

Comments
 (0)