mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Fix creating self-signed certificates
* Python 3 does not support tuple unpacking in arguments
This commit is contained in:
parent
0f02fab259
commit
56a66976e6
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ def createCertificate(req, issuerCertKey, serial, validityPeriod, digest="sha256
|
||||||
cert.sign(issuerKey, digest)
|
cert.sign(issuerKey, digest)
|
||||||
return cert
|
return cert
|
||||||
|
|
||||||
def createSelfSignedCertificate((issuerName, issuerKey), serial, (notBefore, notAfter), altNames, digest="sha256"):
|
def createSelfSignedCertificate(issuerName, issuerKey, serial, notBefore, notAfter, altNames, digest="sha256"):
|
||||||
"""
|
"""
|
||||||
Generate a certificate given a certificate request.
|
Generate a certificate given a certificate request.
|
||||||
Arguments: issuerName - The name of the issuer
|
Arguments: issuerName - The name of the issuer
|
||||||
|
|
|
@ -467,7 +467,7 @@ def create_https_certificates(ssl_cert, ssl_key):
|
||||||
# Create the self-signed Tautulli certificate
|
# Create the self-signed Tautulli certificate
|
||||||
logger.debug("Generating self-signed SSL certificate.")
|
logger.debug("Generating self-signed SSL certificate.")
|
||||||
pkey = createKeyPair(TYPE_RSA, 2048)
|
pkey = createKeyPair(TYPE_RSA, 2048)
|
||||||
cert = createSelfSignedCertificate(("Tautulli", pkey), serial, (0, 60 * 60 * 24 * 365 * 10), altNames) # ten years
|
cert = createSelfSignedCertificate("Tautulli", pkey, serial, 0, 60 * 60 * 24 * 365 * 10, altNames) # ten years
|
||||||
|
|
||||||
# Save the key and certificate to disk
|
# Save the key and certificate to disk
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue