From d643f637579347d1e76945666deffe77d1c35cd1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 31 Dec 2023 13:16:41 -0800 Subject: [PATCH] Fixed: Disable SSL on start if certificate path is not set (cherry picked from commit 4e19fec123900b8ba1252b640f26f2a4983683ff) --- src/NzbDrone.Core/Configuration/ConfigFileProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs index 03bbeb151..6ccf4fadc 100644 --- a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs +++ b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs @@ -329,8 +329,8 @@ namespace NzbDrone.Core.Configuration return; } - // If SSL is enabled and a cert hash is still in the config file disable SSL - if (EnableSsl && GetValue("SslCertHash", null).IsNotNullOrWhiteSpace()) + // If SSL is enabled and a cert hash is still in the config file or cert path is empty disable SSL + if (EnableSsl && (GetValue("SslCertHash", null).IsNotNullOrWhiteSpace() || SslCertPath.IsNullOrWhiteSpace())) { SetValue("EnableSsl", false); }