TlsOptions
Namespace: Orleans.Connections.Transport.Security
public class TlsOptionsConstructors
Properties
CheckCertificateRevocationSpecifies whether the certificate revocation list is checked during authentication.ClientCertificateModeControls selection of the local client certificate when Orleans initiates a TLS connection. Defaults toRemoteCertificateMode.HandshakeTimeoutSpecifies the maximum amount of time allowed for the TLS/SSL handshake. This must be positive and no greater than 4,294,967,294 milliseconds (approximately 49.7 days), orSystem.Threading.Timeout.InfiniteTimeSpanto disable the timeout.LocalCertificateSpecifies the local certificate used to authenticate TLS connections. This is ignored on server if
TlsOptionsis set.To omit client authentication set to
nullon client and setTlsOptionstoRemoteCertificateModeorRemoteCertificateModeon 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.
LocalClientCertificateSelectorA callback that will be invoked to dynamically select a local client certificate. This is higher priority than LocalCertificate. Returning
nullomits the client certificate whenTlsOptionsisRemoteCertificateModeorRemoteCertificateMode. When the mode isRemoteCertificateMode, 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).
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).
MemoryPoolGets or sets the memory pool.OnAuthenticateAsClientProvides direct configuration of theTlsClientAuthenticationOptionson a per-connection basis. This is called after all of the other settings have already been applied.OnAuthenticateAsServerProvides direct configuration of theTlsServerAuthenticationOptionson a per-connection basis. This is called after all of the other settings have already been applied.RemoteCertificateModeSpecifies the remote endpoint certificate requirements for a TLS connection. Defaults toRemoteCertificateMode.RemoteCertificateValidationSpecifies a callback for additional remote certificate validation that will be invoked during authentication. This will be ignored ifTlsOptionsis called after this callback is set.SslProtocolsSpecifies allowable SSL protocols. Defaults toSystem.Security.Authentication.SslProtocols.Tls13andSystem.Security.Authentication.SslProtocols.Tls12.
Methods
AllowAnyRemoteCertificateOverrides the currentTlsOptionscallback and allows any client certificate.
