10 writes to RemoteCertificateValidationCallback
Certificate.Optional.Sample (1)
Program.cs (1)
54RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => certificate is not null
InMemory.FunctionalTests (4)
HttpsConnectionMiddlewareTests.cs (4)
253RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true, 669RemoteCertificateValidationCallback = (_, _, _, _) => true, 716RemoteCertificateValidationCallback = (_, _, _, _) => true, 831so.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) =>
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\SniOptionsSelector.cs (2)
89sslOptions.RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => 197RemoteCertificateValidationCallback = sslOptions.RemoteCertificateValidationCallback,
Middleware\HttpsConnectionMiddleware.cs (1)
572sslServerAuthenticationOptions.RemoteCertificateValidationCallback
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
850RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true,
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicTestHelpers.cs (1)
87sslServerAuthenticationOptions.RemoteCertificateValidationCallback = RemoteCertificateValidationCallback;
13 references to RemoteCertificateValidationCallback
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\SniOptionsSelector.cs (1)
197RemoteCertificateValidationCallback = sslOptions.RemoteCertificateValidationCallback,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
SniOptionsSelectorTests.cs (7)
765Assert.NotNull(options.RemoteCertificateValidationCallback); 767Assert.True(options.RemoteCertificateValidationCallback(sender: null, certificate: null, chain: null, SslPolicyErrors.None)); 801Assert.NotNull(options.RemoteCertificateValidationCallback); 803Assert.True(options.RemoteCertificateValidationCallback(sender: null, certificate: null, chain: null, SslPolicyErrors.None)); 890Assert.Same(options.RemoteCertificateValidationCallback, clonedOptions.RemoteCertificateValidationCallback); 891Assert.True(propertyNames.Remove(nameof(options.RemoteCertificateValidationCallback)));
System.Net.Quic (2)
System\Net\Quic\QuicConnection.cs (1)
472options.ServerAuthenticationOptions.RemoteCertificateValidationCallback,
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
44/// Configured via <see cref="SslServerAuthenticationOptions.RemoteCertificateValidationCallback"/> or <see cref="SslClientAuthenticationOptions.RemoteCertificateValidationCallback"/>.
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
95CertValidationDelegate = sslServerAuthenticationOptions.RemoteCertificateValidationCallback; 97else if (sslServerAuthenticationOptions.RemoteCertificateValidationCallback != null && 98CertValidationDelegate != sslServerAuthenticationOptions.RemoteCertificateValidationCallback)