agent: generate RSA-SHA256 self signed certificates (#31964)

This commit is contained in:
Benjamin Dauvergne 2019-04-03 12:44:14 +02:00
parent 1b9704742f
commit 6bc71fc1b4
1 changed files with 1 additions and 1 deletions

View File

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