Edit

Share via


TlsOptions.LocalServerCertificateSelector Property

Definition

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

public Func<Microsoft.AspNetCore.Connections.ConnectionContext,string,System.Security.Cryptography.X509Certificates.X509Certificate2> LocalServerCertificateSelector { get; set; }
member this.LocalServerCertificateSelector : Func<Microsoft.AspNetCore.Connections.ConnectionContext, string, System.Security.Cryptography.X509Certificates.X509Certificate2> with get, set
Public Property LocalServerCertificateSelector As Func(Of ConnectionContext, String, X509Certificate2)

Property Value

Applies to