File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/Servers/Kestrel/test/InMemory.FunctionalTests Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) )
You can’t perform that action at this time.
0 commit comments