Interface IRootCertificateExtractor
- Namespace
- Arc4u.gRPC.ChannelCertificate
- Assembly
- Arc4u.gRPC.dll
Retrieves the certificate a server presents during the TLS handshake.
public interface IRootCertificateExtractor
Methods
FetchCertificateFor(Uri)
Fetches the server certificate of an https endpoint.
X509Certificate2? FetchCertificateFor(Uri rootUrl)
Parameters
rootUrlUriThe https URL of the server.
Returns
- X509Certificate2
The certificate, or null when it could not be obtained.