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); }