コード例 #1
0
ファイル: GrpcUtils.cs プロジェクト: wwwcat0201/ServiceStack
 public static HttpClientHandler AddPemCertificateFromFile(this HttpClientHandler handler, string fileName,
                                                           Func <HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> serverCertificateCustomValidationCallback = null) =>
 handler.AddPemCertificate(new X509Certificate2(fileName), serverCertificateCustomValidationCallback);