Create ca_folder if it does not already exist.

This commit is contained in:
Soren Hansen 2011-04-06 18:10:42 +02:00
parent 37fc53350b
commit 0a8ca1bb7f
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,8 @@ def _sign_csr(csr_text, ca_folder):
LOG.debug(_("Flags path: %s"), ca_folder)
start = os.getcwd()
# Change working dir to CA
if not os.path.exists(ca_folder):
os.makedirs(ca_folder)
os.chdir(ca_folder)
utils.execute('openssl', 'ca', '-batch', '-out', outbound, '-config',
'./openssl.cnf', '-infiles', inbound)