Edit

Share via


ITlsConnectionFeature.GetRemoteCertificateAsync(CancellationToken) Method

Definition

Asynchronously retrieves the remote endpoint's certificate, if any.

public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> GetRemoteCertificateAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetRemoteCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public Function GetRemoteCertificateAsync (cancellationToken As CancellationToken) As Task(Of X509Certificate2)

Parameters

cancellationToken
CancellationToken

Returns

Applies to