summaryrefslogtreecommitdiffstats
path: root/base/deploy/src/scriptlets/pkijython.py
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-12-18 16:05:55 -0500
committerAde Lee <alee@redhat.com>2012-12-19 00:07:04 -0500
commit62033f12b40e6eb3270c352e966a7461f152dfd6 (patch)
treea3547ccefdfc74d86530360bf5685abf32cf95d1 /base/deploy/src/scriptlets/pkijython.py
parentc3fdb8ffc11938514d96760c9a62d619f90cbcca (diff)
downloadpki-62033f12b40e6eb3270c352e966a7461f152dfd6.tar.gz
pki-62033f12b40e6eb3270c352e966a7461f152dfd6.tar.xz
pki-62033f12b40e6eb3270c352e966a7461f152dfd6.zip
Make admin cert p12 file location configurable
Ticket 437. Also moved a bunch of client path parameters to default.cfg template file.
Diffstat (limited to 'base/deploy/src/scriptlets/pkijython.py')
-rw-r--r--base/deploy/src/scriptlets/pkijython.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/deploy/src/scriptlets/pkijython.py b/base/deploy/src/scriptlets/pkijython.py
index e6a4a915e..fac352fdb 100644
--- a/base/deploy/src/scriptlets/pkijython.py
+++ b/base/deploy/src/scriptlets/pkijython.py
@@ -613,6 +613,11 @@ class rest_client:
log.PKI_JYTHON_ADMIN_CERT_IMPORT +\
" " + "'" + command + "'")
os.system(command)
+
+ # create directory for p12 file if it does not exist
+ self.mkdirs(os.path.dirname(
+ master['pki_client_admin_cert_p12']))
+
# Export the Administration Certificate from the
# client NSS security database into a PKCS #12 file
command = "pk12util" + " " +\