GetRemoteCertificateAsync(CancellationToken)
abstract
public abstract Task<X509Certificate2?> GetRemoteCertificateAsync(CancellationToken cancellationToken) Asynchronously retrieves the remote endpoint's certificate, if any.
Parameters
cancellationTokenCancellationToken- The cancellation token.
Returns
The remote endpoint certificate, or
null if none is available.