diff options
author | mharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2009-05-30 01:32:34 +0000 |
---|---|---|
committer | mharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2009-05-30 01:32:34 +0000 |
commit | 33e21f6e9a78056ca03ae7181bd4cdf5a31d7c4b (patch) | |
tree | 117da62f23b2ffe3ca7692e261442837c5338622 /pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java | |
parent | 720381acc9bb84cf2d771adfc9758f28b1369e6a (diff) | |
download | pki-33e21f6e9a78056ca03ae7181bd4cdf5a31d7c4b.tar.gz pki-33e21f6e9a78056ca03ae7181bd4cdf5a31d7c4b.tar.xz pki-33e21f6e9a78056ca03ae7181bd4cdf5a31d7c4b.zip |
Bugzilla Bug #500733 - Subordinate CA - administrator certificate import fails
(install wizard)
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@517 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java b/pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java index 8c40c8d79..7487694df 100644 --- a/pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java +++ b/pki/base/common/src/com/netscape/cms/servlet/csadmin/ImportAdminCertPanel.java @@ -138,8 +138,12 @@ public class ImportAdminCertPanel extends WizardPanelBase { } catch (Exception e) {} } else if (type.equals("sdca")) { try { + // If this code is selected (e. g. - Subordinate CAs + // that are NOT their own Security Domain), it MUST + // still pass the "httpsadminport" associated with the + // Security Domain CA as defined via the NamePanel. caHost = cs.getString("preop.ca.hostname", ""); - caPort = cs.getString("preop.ca.httpsport", ""); + caPort = cs.getString("preop.ca.httpsadminport", ""); } catch (Exception e) {} } } else { @@ -180,10 +184,14 @@ public class ImportAdminCertPanel extends WizardPanelBase { String type = ""; String subsystemtype = ""; + String security_domain_type = ""; + String selected_hierarchy = ""; try { type = cs.getString("preop.ca.type", ""); subsystemtype = cs.getString("cs.type", ""); + security_domain_type = cs.getString("securitydomain.select", ""); + selected_hierarchy = cs.getString("preop.hierarchy.select", ""); } catch (Exception e) {} ICertificateAuthority ca = (ICertificateAuthority) CMS.getSubsystem( @@ -198,9 +206,20 @@ public class ImportAdminCertPanel extends WizardPanelBase { X509CertImpl certs[] = new X509CertImpl[1]; - if (ca != null) { + // REMINDER: This panel is NOT used by "clones" + if( ( ca != null ) && ( security_domain_type.equals( "new" ) ) ) { String serialno = null; + if( selected_hierarchy.equals( "root" ) ) { + CMS.debug( "ImportAdminCertPanel update: " + + "Root CA subsystem - " + + "(new Security Domain)" ); + } else { + CMS.debug( "ImportAdminCertPanel update: " + + "Subordinate CA subsystem - " + + "(new Security Domain)" ); + } + try { serialno = cs.getString("preop.admincert.serialno.0"); } catch (Exception e) { @@ -218,6 +237,23 @@ public class ImportAdminCertPanel extends WizardPanelBase { } else { String dir = null; + // REMINDER: This panel is NOT used by "clones" + if( subsystemtype.equals( "CA" ) ) { + if( selected_hierarchy.equals( "root" ) ) { + CMS.debug( "ImportAdminCertPanel update: " + + "Root CA subsystem - " + + "(existing Security Domain)" ); + } else { + CMS.debug( "ImportAdminCertPanel update: " + + "Subordinate CA subsystem - " + + "(existing Security Domain)" ); + } + } else { + CMS.debug( "ImportAdminCertPanel update: " + + subsystemtype + + " subsystem" ); + } + try { dir = cs.getString("preop.admincert.b64", ""); CMS.debug("ImportAdminCertPanel update: dir=" + dir); |