summaryrefslogtreecommitdiffstats
path: root/pki/base
diff options
context:
space:
mode:
authorawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-04-22 00:46:13 +0000
committerawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2010-04-22 00:46:13 +0000
commitd8d9ae723b299d9c155330c3320bed0612a6753c (patch)
tree07b2259ca5d60552ba814ab7f03d0e1a8cf80f96 /pki/base
parentccae6f26cceec609d79ec8ef53b71c78b2a969bb (diff)
downloadpki-d8d9ae723b299d9c155330c3320bed0612a6753c.tar.gz
pki-d8d9ae723b299d9c155330c3320bed0612a6753c.tar.xz
pki-d8d9ae723b299d9c155330c3320bed0612a6753c.zip
Fixed bugzilla bug #493765
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1046 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base')
-rw-r--r--pki/base/console/src/com/netscape/admin/certsrv/keycert/WCertExtensionPage.java35
1 files changed, 29 insertions, 6 deletions
diff --git a/pki/base/console/src/com/netscape/admin/certsrv/keycert/WCertExtensionPage.java b/pki/base/console/src/com/netscape/admin/certsrv/keycert/WCertExtensionPage.java
index 8a3b14727..50bbde4ee 100644
--- a/pki/base/console/src/com/netscape/admin/certsrv/keycert/WCertExtensionPage.java
+++ b/pki/base/console/src/com/netscape/admin/certsrv/keycert/WCertExtensionPage.java
@@ -82,18 +82,28 @@ class WCertExtensionPage extends WBaseCertExtensionPage implements
mSKICheckBox.setSelected(true);
mCertPathBox.setSelected(false);
mExtendedKeyCheckBox.setSelected(false);
+ mExtendedKeyCheckBox.setEnabled(true);
mKeyUsageBox.setSelected(true);
+ mOCSPNoCheck.setSelected(false);
+ mOCSPNoCheck.setEnabled(true);
+ mAIACheckBox.setSelected(true);
} else if (certType.equals(Constants.PR_OCSP_SIGNING_CERT)) {
title = mResource.getString(
"CERTEXTENSION1WIZARD_BORDER_OCSPSIGNING_LABEL");
- mKeyUsageBox.setSelected(false);
- mKeyUsageBox.setEnabled(false);
- mSKICheckBox.setSelected(true);
+ mKeyUsageBox.setSelected(true);
+ mSKICheckBox.setSelected(false);
+ mSKICheckBox.setEnabled(true);
mBasicCheckBox.setEnabled(false);
- mAKICheckBox.setEnabled(false);
+ mAKICheckBox.setSelected(true);
+ mAKICheckBox.setEnabled(true);
+ mCACheckBox.setSelected(false);
mCACheckBox.setEnabled(false);
mCertPathBox.setEnabled(false);
- mExtendedKeyCheckBox.setEnabled(false);
+ mExtendedKeyCheckBox.setSelected(true);
+ mOCSPSigning.setSelected(true);
+ mOCSPNoCheck.setSelected(false);
+ mOCSPNoCheck.setEnabled(true);
+ mAIACheckBox.setSelected(true);
} else if (certType.equals(Constants.PR_RA_SIGNING_CERT)) {
title = mResource.getString(
"CERTEXTENSION1WIZARD_BORDER_RASIGNING_LABEL");
@@ -108,8 +118,13 @@ class WCertExtensionPage extends WBaseCertExtensionPage implements
title = mResource.getString(
"CERTEXTENSION1WIZARD_BORDER_SERVER_LABEL");
mExtendedKeyCheckBox.setSelected(true);
- mAKICheckBox.setSelected(true);
mSSLServer.setSelected(true);
+ mAKICheckBox.setSelected(true);
+ mSKICheckBox.setSelected(false);
+ mSKICheckBox.setEnabled(true);
+ mOCSPNoCheck.setSelected(false);
+ mOCSPNoCheck.setEnabled(true);
+ mAIACheckBox.setSelected(true);
} else if (certType.equals(Constants.PR_SERVER_CERT_RADM)) {
title = mResource.getString(
"CERTEXTENSION1WIZARD_BORDER_SERVER_LABEL");
@@ -159,12 +174,18 @@ class WCertExtensionPage extends WBaseCertExtensionPage implements
if (mExtendedKeyCheckBox.isSelected())
addExtendedKey(nvps);
+ if (mAIACheckBox.isSelected())
+ nvps.add(Constants.PR_AIA, Constants.TRUE);
+
if (mAKICheckBox.isSelected())
nvps.add(Constants.PR_AKI, Constants.TRUE);
if (mSKICheckBox.isSelected())
nvps.add(Constants.PR_SKI, Constants.TRUE);
+ if (mOCSPNoCheck.isSelected())
+ nvps.add(Constants.PR_OCSP_NOCHECK, Constants.TRUE);
+
if (mKeyUsageBox.isSelected())
nvps.add(Constants.PR_KEY_USAGE, Constants.TRUE);
@@ -215,6 +236,8 @@ class WCertExtensionPage extends WBaseCertExtensionPage implements
nvps.add(Constants.PR_OBJECT_SIGNING_BIT, Constants.TRUE);
if (mTimeStamping.isSelected())
nvps.add(Constants.PR_TIMESTAMPING_BIT, Constants.TRUE);
+ if (mOCSPSigning.isSelected())
+ nvps.add(Constants.PR_OCSP_SIGNING, Constants.TRUE);
}
public void callHelp() {