mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 05:04:46 +02:00
dockersetup.py: letsencrypt 2048 bit rsa
The minimum length for an RSA pem is 2048 for the dummy cert. Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
parent
f9c640a7c0
commit
1f41512758
|
@ -483,7 +483,7 @@ def setup_https(hostname, http_port, https_port, letsencrypt, cert, cert_key, em
|
|||
os.makedirs(local_letsencrypt_cert_dir)
|
||||
keyfile = os.path.join(letsencrypt_cert_subdir, 'privkey.pem')
|
||||
certfile = os.path.join(letsencrypt_cert_subdir, 'fullchain.pem')
|
||||
return_code = subprocess.call(['openssl', 'req', '-x509', '-nodes', '-newkey', 'rsa:1024', '-days', '1', '-keyout', os.path.join(local_cert_dir, keyfile), '-out', os.path.join(local_cert_dir, certfile), '-subj', '/CN=localhost'], shell=False)
|
||||
return_code = subprocess.call(['openssl', 'req', '-x509', '-nodes', '-newkey', 'rsa:2048', '-days', '1', '-keyout', os.path.join(local_cert_dir, keyfile), '-out', os.path.join(local_cert_dir, certfile), '-subj', '/CN=localhost'], shell=False)
|
||||
if return_code != 0:
|
||||
print("Dummy certificate generation failed")
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user