Esempio n. 1
0
 public static HttpClientHandler AddPemCertificateFromFile(this HttpClientHandler handler, string fileName,
                                                           Func <HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> serverCertificateCustomValidationCallback = null) =>
 handler.AddPemCertificate(new X509Certificate2(fileName), serverCertificateCustomValidationCallback);