From ec985a2318700f684d29d370694a6a4ddb7abded Mon Sep 17 00:00:00 2001 From: flightlevel Date: Sat, 4 May 2019 16:18:25 +1000 Subject: [PATCH] Use custom certificate validation handler for httpclient2netcore https://github.com/Jackett/Jackett/issues/5172 --- src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs b/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs index 5f7a9aeec..20a250b47 100644 --- a/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs +++ b/src/Jackett.Common/Utils/Clients/HttpWebClient2NetCore.cs @@ -130,6 +130,9 @@ namespace Jackett.Common.Utils.Clients AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; + // custom certificate validation handler (netcore version) + clientHandlr.ServerCertificateCustomValidationCallback = ValidateCertificate; + clearanceHandlr.InnerHandler = clientHandlr; client = new HttpClient(clearanceHandlr); }