TlsOptions
Namespace: Orleans.Connections.Security
public class TlsOptionsConstructors
Properties
CheckCertificateRevocationSpecifies whether the certificate revocation list is checked during authentication.ClientCertificateModeSpecifies the client authentication certificate requirements for a TLS connection to Silo. Defaults toRemoteCertificateMode.HandshakeTimeoutSpecifies the maximum amount of time allowed for the TLS/SSL handshake. This must be positive and finite.LocalCertificateSpecifies the local certificate used to authenticate TLS connections. This is ignored on server if LocalCertificateSelector is 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.
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).
OnAuthenticateAsClientProvides direct configuration of theTlsClientAuthenticationOptionson a per-connection basis. This is called after all of the other settings have already been applied. Use this to set the target host name for SNI (Server Name Indication) viaTlsClientAuthenticationOptions.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.
