Commit aec84c5c authored by godog's avatar godog
Browse files

create CA private key if not found

parent f48c2e88
......@@ -97,11 +97,18 @@ class CA(object):
# Generate keys if they do not exist.
if not os.path.exists(self.files.private_key):'creating new RSA private key')'genrsa', '-des3',
'-out', self.files.private_key,
# Generate keys if they do not exist.
if not os.path.exists(self.files.public_key):
tmpdir = tempfile.mkdtemp()
csr_file = os.path.join(tmpdir, 'ca.csr')'creating new RSA CA CSR')'creating new temporary RSA CA CSR')
self.basedir, self.files.conf,
'req', '-new',
Supports Markdown
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