From e1c7a37f6229ad77fcf5186277b688f55a6cf21f Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 13 Feb 2016 16:31:04 -0800 Subject: [PATCH] Only create self-signed certificate if enabled --- plexpy/webstart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/webstart.py b/plexpy/webstart.py index a2e0d655..b1eae170 100644 --- a/plexpy/webstart.py +++ b/plexpy/webstart.py @@ -33,7 +33,8 @@ def initialize(options): if enable_https: # If either the HTTPS certificate or key do not exist, try to make self-signed ones. - if not (https_cert and os.path.exists(https_cert)) or not (https_key and os.path.exists(https_key)): + if plexpy.CONFIG.HTTPS_CREATE_CERT and \ + (not (https_cert and os.path.exists(https_cert)) or not (https_key and os.path.exists(https_key))): if not create_https_certificates(https_cert, https_key): logger.warn("Unable to create certificate and key. Disabling HTTPS") enable_https = False