Skip to content

TlsOptions.LocalServerCertificateSelector

LocalServerCertificateSelector

getset
View source
public Func<ConnectionContext, string, X509Certificate2> LocalServerCertificateSelector

A 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).