diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-02-02 03:32:50 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-02-03 01:29:02 +0100 |
commit | d42f39334ce4b4f5fa89707bfb6145039ff04579 (patch) | |
tree | 5af9fc4fafb0ab5894bc92e304d6d15256f87513 /base/server/python | |
parent | f778a2654496e064cace35f2aa25cf7dc304f5fd (diff) | |
download | pki-d42f39334ce4b4f5fa89707bfb6145039ff04579.tar.gz pki-d42f39334ce4b4f5fa89707bfb6145039ff04579.tar.xz pki-d42f39334ce4b4f5fa89707bfb6145039ff04579.zip |
Fixed KRA installation.
Due to a recent change the KRA installation failed because the
installer was trying to read the pki_external_csr_path parameter
which is not available for KRA installation. The installer has
been fixed to read the parameter in external CA case only.
https://fedorahosted.org/pki/ticket/456
Diffstat (limited to 'base/server/python')
-rw-r--r-- | base/server/python/pki/server/deployment/pkihelper.py | 1 | ||||
-rw-r--r-- | base/server/python/pki/server/deployment/scriptlets/configuration.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py index 0f5485a46..429e1e93e 100644 --- a/base/server/python/pki/server/deployment/pkihelper.py +++ b/base/server/python/pki/server/deployment/pkihelper.py @@ -504,7 +504,6 @@ class ConfigurationFile: self.external = config.str2bool(self.mdict['pki_external']) self.external_step_one = not config.str2bool(self.mdict['pki_external_step_two']) self.external_step_two = not self.external_step_one - self.external_csr_path = self.mdict['pki_external_csr_path'] if self.external: # generic extension support in CSR - for external CA diff --git a/base/server/python/pki/server/deployment/scriptlets/configuration.py b/base/server/python/pki/server/deployment/scriptlets/configuration.py index 7ecb4d76f..d06d88f1d 100644 --- a/base/server/python/pki/server/deployment/scriptlets/configuration.py +++ b/base/server/python/pki/server/deployment/scriptlets/configuration.py @@ -96,7 +96,6 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): external = deployer.configuration_file.external step_one = deployer.configuration_file.external_step_one step_two = deployer.configuration_file.external_step_two - external_csr_path = deployer.configuration_file.external_csr_path try: if external and step_one: # external/existing CA step 1 @@ -128,6 +127,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): # If filename specified, generate CA cert request and # import it into CS.cfg. + external_csr_path = deployer.mdict['pki_external_csr_path'] if external_csr_path: nssdb.create_request( subject_dn=deployer.mdict['pki_ca_signing_subject_dn'], @@ -150,6 +150,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): elif external and step_two: # external/existing CA step 2 # If specified, import existing CA cert request into CS.cfg. + external_csr_path = deployer.mdict['pki_external_csr_path'] if external_csr_path: with open(external_csr_path) as f: signing_csr = f.read() |