mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
pyOpenSSL only required for generating self-signed certificates
This commit is contained in:
parent
ed735e5fa3
commit
05739ea959
2 changed files with 1 additions and 11 deletions
10
Tautulli.py
10
Tautulli.py
|
@ -253,16 +253,6 @@ def main():
|
|||
else:
|
||||
plexpy.HTTP_PORT = int(plexpy.CONFIG.HTTP_PORT)
|
||||
|
||||
# Check if pyOpenSSL is installed. It is required for certificate generation
|
||||
# and for CherryPy.
|
||||
if plexpy.CONFIG.ENABLE_HTTPS:
|
||||
try:
|
||||
import OpenSSL
|
||||
except ImportError:
|
||||
logger.warn("The pyOpenSSL module is missing. Install this "
|
||||
"module to enable HTTPS. HTTPS will be disabled.")
|
||||
plexpy.CONFIG.ENABLE_HTTPS = False
|
||||
|
||||
# Try to start the server. Will exit here is address is already in use.
|
||||
webstart.start()
|
||||
|
||||
|
|
|
@ -486,7 +486,7 @@ def create_https_certificates(ssl_cert, ssl_key):
|
|||
try:
|
||||
from OpenSSL import crypto
|
||||
except ImportError:
|
||||
logger.error("Unable to generate self-signed certificates: Missing OpenSSL module.")
|
||||
logger.error("Unable to generate self-signed certificates: Missing pyOpenSSL module.")
|
||||
return False
|
||||
from certgen import createKeyPair, createSelfSignedCertificate, TYPE_RSA
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue