mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Change increase self-signed cert key length.
This commit is contained in:
parent
5f05cf62f0
commit
e11d9a7713
1 changed files with 2 additions and 2 deletions
|
@ -644,12 +644,12 @@ def create_https_certificates(ssl_cert, ssl_key):
|
|||
return False
|
||||
|
||||
# Create the CA Certificate
|
||||
cakey = createKeyPair(TYPE_RSA, 1024)
|
||||
cakey = createKeyPair(TYPE_RSA, 4096)
|
||||
careq = createCertRequest(cakey, CN='Certificate Authority')
|
||||
cacert = createCertificate(careq, (careq, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years
|
||||
|
||||
cname = 'SickGear'
|
||||
pkey = createKeyPair(TYPE_RSA, 1024)
|
||||
pkey = createKeyPair(TYPE_RSA, 4096)
|
||||
req = createCertRequest(pkey, CN=cname)
|
||||
cert = createCertificate(req, (cacert, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years
|
||||
|
||||
|
|
Loading…
Reference in a new issue