Commit 4c0d3193 authored by Łukasz Nowak's avatar Łukasz Nowak

- sign certificates for 3650 days


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afd96543
......@@ -191,8 +191,9 @@ class CertificateAuthorityTool(BaseTool):
popenCommunicate([self.openssl_binary, 'req', '-nodes', '-config',
self.openssl_config, '-new', '-keyout', key, '-out', csr, '-days',
'3650'], '%s\n' % new_id, stdin=subprocess.PIPE)
popenCommunicate([self.openssl_binary, 'ca', '-batch', '-config',
self.openssl_config, '-out', cert, '-infiles', csr])
popenCommunicate([self.openssl_binary, 'ca', '-days', '3650',
'-batch', '-config', self.openssl_config, '-out', cert, '-infiles',
csr])
os.unlink(csr)
return dict(
key=open(key).read(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment