agent: generate RSA-SHA256 self signed certificates (#31964)
This commit is contained in:
parent
1b9704742f
commit
6bc71fc1b4
|
@ -113,7 +113,7 @@ class Command(BaseCommand):
|
|||
if os.path.exists(key_file) and os.path.exists(cert_file):
|
||||
return
|
||||
|
||||
openssl('req', '-x509', '-newkey', 'rsa:%s' % KEY_SIZE, '-nodes',
|
||||
openssl('req', '-x509', '-sha256', '-newkey', 'rsa:%s' % KEY_SIZE, '-nodes',
|
||||
'-keyout', key_file, '-out', cert_file, '-batch',
|
||||
'-subj', '/CN=%s' % tenant.domain_url[:60], '-days', str(DAYS))
|
||||
|
||||
|
|
Loading…
Reference in New Issue