Azure.Identity.X509Certificate2FromFileProvider
X509Certificate2FromFileProvider provides an X509Certificate2 from a file on disk. It supports both
"pfx" and "pem" encoded certificates.
public ValueTask<X509Certificate2> GetCertificateAsync(bool async, CancellationToken cancellationToken)