Merge pull request #864 from JackDandy/feature/ChangeCertLen

Change increase self-signed cert key length.
This commit is contained in:
JackDandy 2017-02-01 02:40:58 +00:00 committed by GitHub
commit b07712181a

View file

@ -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