summaryrefslogtreecommitdiffstats
path: root/base/server/sbin
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2015-12-12 04:10:54 +0100
committerEndi S. Dewata <edewata@redhat.com>2016-01-08 19:55:50 +0100
commit449e4357e733a70e8f27f65f69ca8f0f7c8b5b21 (patch)
tree29e9635ba3e322f4d466c7de854a37d704597f85 /base/server/sbin
parent9d64c0b8e58fa4bb1b5504167b7d80b90e0ae1ff (diff)
downloadpki-449e4357e733a70e8f27f65f69ca8f0f7c8b5b21.tar.gz
pki-449e4357e733a70e8f27f65f69ca8f0f7c8b5b21.tar.xz
pki-449e4357e733a70e8f27f65f69ca8f0f7c8b5b21.zip
Fixed external CA case for IPA compatibility.
The installation code for external CA case has been fixed such that IPA can detect step 1 completion properly. The code that handles certificate data conversion has been fixed to reformat base-64 data for PEM output properly. The installation summary for step 1 has been updated to provide more accurate information. https://fedorahosted.org/pki/ticket/456
Diffstat (limited to 'base/server/sbin')
-rwxr-xr-xbase/server/sbin/pkispawn23
1 files changed, 22 insertions, 1 deletions
diff --git a/base/server/sbin/pkispawn b/base/server/sbin/pkispawn
index f29dec333..9c2aa2d66 100755
--- a/base/server/sbin/pkispawn
+++ b/base/server/sbin/pkispawn
@@ -614,7 +614,13 @@ def main(argv):
config.pki_log.debug(pkilogging.log_format(parser.mdict),
extra=config.PKI_INDENTATION_LEVEL_0)
- print_install_information(parser.mdict)
+ external = deployer.configuration_file.external
+ step_one = deployer.configuration_file.external_step_one
+
+ if external and step_one:
+ print_step_one_information(parser.mdict)
+ else:
+ print_install_information(parser.mdict)
def set_port(parser, tag, prompt, existing_data):
@@ -624,6 +630,21 @@ def set_port(parser, tag, prompt, existing_data):
parser.read_text(prompt, config.pki_subsystem, tag)
+def print_step_one_information(mdict):
+
+ print(log.PKI_SPAWN_INFORMATION_HEADER)
+ print(" The %s subsystem of the '%s' instance is still incomplete." %
+ (config.pki_subsystem, mdict['pki_instance_name']))
+ print()
+ print(" A CSR for the CA certificate has been generated at:\n"
+ " %s"
+ % mdict['pki_external_csr_path'])
+ print()
+ print(" Submit the CSR to an external CA to generate a CA certificate\n"
+ " for this subsystem.")
+ print(log.PKI_SPAWN_INFORMATION_FOOTER)
+
+
def print_install_information(mdict):
skip_configuration = config.str2bool(mdict['pki_skip_configuration'])