diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-10-24 23:50:24 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-10-24 23:50:24 +0000 |
commit | 6a075b983056d801a288e4e8ad81eb8c263b0260 (patch) | |
tree | 7ac781e7e444b8b8b9258fe06b8289abf39576f3 /src | |
parent | 19915cc0058d876eb69d2188f69aae41e6d791a1 (diff) | |
download | bcfg2-6a075b983056d801a288e4e8ad81eb8c263b0260.tar.gz bcfg2-6a075b983056d801a288e4e8ad81eb8c263b0260.tar.bz2 bcfg2-6a075b983056d801a288e4e8ad81eb8c263b0260.zip |
Fix ssl key generation (Resolves Ticket #606)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4951 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Admin/Init.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py index fa06f9346..54692c126 100644 --- a/src/lib/Server/Admin/Init.py +++ b/src/lib/Server/Admin/Init.py @@ -150,8 +150,7 @@ class Init(Bcfg2.Server.Admin.Mode): # FIXME automate ssl key generation # FIXME key generation may fail as non-root user - os.popen('openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -out' \ - '%s/bcfg2.key -keyout %s/bcfg2.key' % (keypath, keypath)) + os.popen('openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -out %s/bcfg2.key -keyout %s/bcfg2.key' % (keypath, keypath)) try: os.chmod('%s/bcfg2.key'% keypath, 0600) except: |