CheckCertificateRevocation
public bool CheckCertificateRevocationpublic bool CheckCertificateRevocationpublic RemoteCertificateMode ClientCertificateModeRemoteCertificateMode. public TimeSpan HandshakeTimeoutSystem.Threading.Timeout.InfiniteTimeSpan to disable the timeout. public X509Certificate2? LocalCertificate Specifies the local certificate used to authenticate TLS connections. This is ignored on server if TlsOptions is set.
To omit client authentication set to null on client and set TlsOptions to RemoteCertificateMode or RemoteCertificateMode on server.
If the certificate has an Extended Key Usage extension, the usages must include Server Authentication (OID 1.3.6.1.5.5.7.3.1) for server and Client Authentication (OID 1.3.6.1.5.5.7.3.2) for client.
public Func<object, string, X509CertificateCollection, X509Certificate?, string[], X509Certificate2?>? LocalClientCertificateSelector A callback that will be invoked to dynamically select a local client certificate. This is higher priority than LocalCertificate. Returning null omits the client certificate when TlsOptions is RemoteCertificateMode or RemoteCertificateMode. When the mode is RemoteCertificateMode, a null result fails authentication.
If the certificate has an Extended Key Usage extension, the usages must include Client Authentication (OID 1.3.6.1.5.5.7.3.2).
public Func<MessageTransport, string?, X509Certificate2?>? LocalServerCertificateSelectorA callback that will be invoked to dynamically select a local server certificate. This is higher priority than LocalCertificate. If SNI is not available then the name parameter will be null.
If the certificate has an Extended Key Usage extension, the usages must include Server Authentication (OID 1.3.6.1.5.5.7.3.1).
public MemoryPool<byte> MemoryPoolpublic Action<MessageTransport, TlsClientAuthenticationOptions>? OnAuthenticateAsClientTlsClientAuthenticationOptions on a per-connection basis. This is called after all of the other settings have already been applied. public Action<MessageTransport, TlsServerAuthenticationOptions>? OnAuthenticateAsServerTlsServerAuthenticationOptions on a per-connection basis. This is called after all of the other settings have already been applied. public RemoteCertificateMode RemoteCertificateModeRemoteCertificateMode. public RemoteCertificateValidator? RemoteCertificateValidationTlsOptions is called after this callback is set. public SslProtocols SslProtocolsSystem.Security.Authentication.SslProtocols.Tls13 and System.Security.Authentication.SslProtocols.Tls12.