59 writes to ServerCertificateCustomValidationCallback
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
290ServerCertificateCustomValidationCallback = (message, cert, chain, errors) =>
IIS.FunctionalTests (7)
Http2TrailersResetTests.cs (2)
507handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 516handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Http3Tests.cs (1)
180handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (3)
359handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 373handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 393handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
75ServerCertificateCustomValidationCallback = (a, b, c, d) => true,
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1373ServerCertificateCustomValidationCallback = (a, b, c, d) => true, 1473ServerCertificateCustomValidationCallback = (a, b, c, d) => true
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1373ServerCertificateCustomValidationCallback = (a, b, c, d) => true, 1473ServerCertificateCustomValidationCallback = (a, b, c, d) => true
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1373ServerCertificateCustomValidationCallback = (a, b, c, d) => true, 1473ServerCertificateCustomValidationCallback = (a, b, c, d) => true
IISExpress.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (3)
359handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 373handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 393handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
75ServerCertificateCustomValidationCallback = (a, b, c, d) => true,
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
1373ServerCertificateCustomValidationCallback = (a, b, c, d) => true, 1473ServerCertificateCustomValidationCallback = (a, b, c, d) => true
Interop.FunctionalTests (7)
Http2WebSocketInteropTests.cs (2)
139handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 169handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Http3\Http3RequestTests.cs (4)
1003httpClientHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 1100httpClientHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 1248httpClientHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 1309httpClientHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
HttpClientHttp2InteropTests.cs (1)
1689handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
InteropClient (1)
InteropClient.cs (1)
159httpClientHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator!;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
Http2Tests.cs (2)
623handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 645handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Http3Tests.cs (8)
40handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 70handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 110handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 144handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 172handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 202handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 227handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 251handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
HttpsTests.cs (1)
276handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
ResponseTrailersTests.cs (1)
362handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
WebHostTests.cs (1)
418httpHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (8)
HubConnectionTests.cs (8)
1765((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 1823((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 1883((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 1926((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 2381((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 2434((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 2477((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true; 2527((HttpClientHandler)h).ServerCertificateCustomValidationCallback = (_, _, _, _) => true;
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
99ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
Microsoft.AspNetCore.Testing (1)
FakeCertificateHttpClientHandler.cs (1)
14ServerCertificateCustomValidationCallback = (_, serverCertificate, _, errors) =>
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
157handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
Negotiate.Client (1)
Controllers\AuthTestController.cs (1)
330ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator,
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (1)
35ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
46ServerCertificateCustomValidationCallback = (request, certificate, chain, errors) => (certificate.Subject != "CN=localhost" && errors == SslPolicyErrors.None) || certificate?.Thumbprint == _developmentCertificate.CertificateThumbprint,
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
46ServerCertificateCustomValidationCallback = (request, certificate, chain, errors) => (certificate.Subject != "CN=localhost" && errors == SslPolicyErrors.None) || certificate?.Thumbprint == _developmentCertificate.CertificateThumbprint,
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
46ServerCertificateCustomValidationCallback = (request, certificate, chain, errors) => (certificate.Subject != "CN=localhost" && errors == SslPolicyErrors.None) || certificate?.Thumbprint == _developmentCertificate.CertificateThumbprint,
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
46ServerCertificateCustomValidationCallback = (request, certificate, chain, errors) => (certificate.Subject != "CN=localhost" && errors == SslPolicyErrors.None) || certificate?.Thumbprint == _developmentCertificate.CertificateThumbprint,
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
46ServerCertificateCustomValidationCallback = (request, certificate, chain, errors) => (certificate.Subject != "CN=localhost" && errors == SslPolicyErrors.None) || certificate?.Thumbprint == _developmentCertificate.CertificateThumbprint,
3 references to ServerCertificateCustomValidationCallback
Microsoft.AspNetCore.Testing.Tests (3)
FakeCertificateHttpClientHandlerTests.cs (3)
25Assert.True(sut.ServerCertificateCustomValidationCallback!( 37Assert.True(sut.ServerCertificateCustomValidationCallback!( 49Assert.False(sut.ServerCertificateCustomValidationCallback!(