From 7ebf7014e0d0deed82fc85189ef41686ea5d3e07 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Sun, 13 Dec 2020 13:25:21 +0100 Subject: Merge pull request #4767 from nyanmisaka/fix-ssl-save (cherry picked from commit f9a78625b7cfc09a7fc3a35b7d54749543ab5c62) Signed-off-by: Joshua M. Boniface --- .../Configuration/ServerConfigurationManager.cs | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'Emby.Server.Implementations/Configuration') diff --git a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs index f05a30a89..7a8ed8c29 100644 --- a/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs +++ b/Emby.Server.Implementations/Configuration/ServerConfigurationManager.cs @@ -88,38 +88,12 @@ namespace Emby.Server.Implementations.Configuration var newConfig = (ServerConfiguration)newConfiguration; ValidateMetadataPath(newConfig); - ValidateSslCertificate(newConfig); ConfigurationUpdating?.Invoke(this, new GenericEventArgs(newConfig)); base.ReplaceConfiguration(newConfiguration); } - /// - /// Validates the SSL certificate. - /// - /// The new configuration. - /// The certificate path doesn't exist. - private void ValidateSslCertificate(BaseApplicationConfiguration newConfig) - { - var serverConfig = (ServerConfiguration)newConfig; - - var newPath = serverConfig.CertificatePath; - - if (!string.IsNullOrWhiteSpace(newPath) - && !string.Equals(Configuration.CertificatePath, newPath, StringComparison.Ordinal)) - { - if (!File.Exists(newPath)) - { - throw new FileNotFoundException( - string.Format( - CultureInfo.InvariantCulture, - "Certificate file '{0}' does not exist.", - newPath)); - } - } - } - /// /// Validates the metadata path. /// -- cgit v1.2.3