From 39b2bac65c398451b521151dd110b2dd4345ffa2 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 3 Apr 2019 12:44:14 +0200 Subject: [PATCH] agent: generate RSA-SHA256 self signed certificates (#31964) --- hobo/agent/common/management/commands/hobo_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hobo/agent/common/management/commands/hobo_deploy.py b/hobo/agent/common/management/commands/hobo_deploy.py index 5e4e724..8fa1e84 100644 --- a/hobo/agent/common/management/commands/hobo_deploy.py +++ b/hobo/agent/common/management/commands/hobo_deploy.py @@ -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)) -- 2.20.1