Change increase self-signed cert key length.

This commit is contained in:
JackDandy 2017-01-17 13:09:14 +00:00
parent 5f05cf62f0
commit e11d9a7713

View file

@ -644,12 +644,12 @@ def create_https_certificates(ssl_cert, ssl_key):
return False return False
# Create the CA Certificate # Create the CA Certificate
cakey = createKeyPair(TYPE_RSA, 1024) cakey = createKeyPair(TYPE_RSA, 4096)
careq = createCertRequest(cakey, CN='Certificate Authority') careq = createCertRequest(cakey, CN='Certificate Authority')
cacert = createCertificate(careq, (careq, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years cacert = createCertificate(careq, (careq, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years
cname = 'SickGear' cname = 'SickGear'
pkey = createKeyPair(TYPE_RSA, 1024) pkey = createKeyPair(TYPE_RSA, 4096)
req = createCertRequest(pkey, CN=cname) req = createCertRequest(pkey, CN=cname)
cert = createCertificate(req, (cacert, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years cert = createCertificate(req, (cacert, cakey), serial, (0, 60 * 60 * 24 * 365 * 10)) # ten years