summaryrefslogtreecommitdiffstats
path: root/dogtag
diff options
context:
space:
mode:
authorChristina Fu <cfu@redhat.com>2012-05-27 15:12:44 -0700
committerChristina Fu <cfu@redhat.com>2012-05-27 15:12:44 -0700
commit2408c5ee1bc64667b5d08be17386d27936174860 (patch)
tree65fd3dbc1122d7573e1e8fe5727b3cc0a4fb4532 /dogtag
parent4a263b8db27208413acd0f038ea67629d5ee27bb (diff)
downloadpki-2408c5ee1bc64667b5d08be17386d27936174860.tar.gz
pki-2408c5ee1bc64667b5d08be17386d27936174860.tar.xz
pki-2408c5ee1bc64667b5d08be17386d27936174860.zip
Bug 823618 - TPS installation wizard (ECC): admin certificate panel needs to support ECC
This patch allows TPS administrators to enroll for EC cert during installation wizard. It follows the same implementation as the Java subsystems and defaults to nistp256
Diffstat (limited to 'dogtag')
-rw-r--r--dogtag/tps-ui/shared/docroot/tps/admin/console/config/adminpanel.vm12
1 files changed, 11 insertions, 1 deletions
diff --git a/dogtag/tps-ui/shared/docroot/tps/admin/console/config/adminpanel.vm b/dogtag/tps-ui/shared/docroot/tps/admin/console/config/adminpanel.vm
index 3d0843b67..a20001f7d 100644
--- a/dogtag/tps-ui/shared/docroot/tps/admin/console/config/adminpanel.vm
+++ b/dogtag/tps-ui/shared/docroot/tps/admin/console/config/adminpanel.vm
@@ -35,13 +35,19 @@ function performPanel() {
var dn = "cn=" + name + ",uid=admin,e="+email+",o="+o;
document.forms[0].subject.value = dn;
var keyGenAlg = "rsa-dual-use";
+ var keyParams = null;
+
+ if (document.forms[0].keytype.value == 'ecc') {
+ keyGenAlg = "ec-dual-use";
+ keyParams = "curve=nistp256"
+ }
if (navigator.appName == "Netscape" &&
typeof(crypto.version) != "undefined") {
crmfObject = crypto.generateCRMFRequest(
dn, "regToken", "authenticator", null,
- "setCRMFRequest();", 1024, null, keyGenAlg);
+ "setCRMFRequest();", 2048, keyParams, keyGenAlg);
} else {
Send_OnClick();
}
@@ -230,6 +236,10 @@ The administrator is a privileged user who manages this subsystem. Please enter
<input type="hidden" name="securitydomain" value="$securityDomain" />
<input type="hidden" name="subject" value="cn=x" />
</tr>
+ <tr>
+ <th>Key Type:</th>
+ <td><select name="keytype"><option value="rsa">RSA</option><option value="ecc">ECC</option></select></td>
+ </tr>
</table>
<div align="right">
<hr />