LDAP-assisted CSR doesn't work with IE in 0.9.2.5: ieCSR.vbs is not
included (nor linked with the onClick button) and thus the request is
done with an empty PKCS10 request.
The attached patch solves it on my installation.
I also corrected (a few) and added (a lot) of sentences in the Italian
translation, but I'll send them in the future because some are specific
to my installation and I must filter them out manually form the diff.
--- branches/upstream/src/common/lib/cmds/ldapCreateCSR Wed May 10 12:09:45 2006
+++ trunk/src/common/lib/cmds/ldapCreateCSR Thu Aug 31 12:13:29 2006
@@ -328,7 +345,7 @@
$result .= " <tr><td colspan=2>".$message."</td></tr>\n";
$result .= " <tr>\n".
- " <td>Method of keygeneration</td>\n".
+ ' <td>'.gettext('Method of keygeneration')."</td>\n".
" <td>\n".
" <select name=\"method\">\n".
" <option value=\"spkac\">".
@@ -430,8 +438,6 @@
"\n </tr>\n";
}
$result .= "</table>\n";
- $result .= "<input type=\"hidden\" name=\"method\" value=\"".
- $query->param ('method')."\"/>\n";
}
return $result;
--- branches/upstream/src/common/lib/cmds/getParams Wed May 10 12:09:42 2006
+++ trunk/src/common/lib/cmds/getParams Thu Aug 31 11:19:03 2006
@@ -55,10 +55,18 @@
$hidden_list->{$h} = $query->param($h)
if (not exists $hidden_list->{$h});
}
+ my $ie_cert = 0;
+ $ie_cert = 1
+ if ($query->param("method") =~ /ie/i);
$info_list->{BODY}->[0]->[0] = '';
$info_list->{BODY}->[0]->[1] = $field;
- $cmd_panel->[0] = "<input type=submit value=\"".gettext("OK")."\">\n";
+ if ($ie_cert) {
+ $hidden_list->{"dn"} = "CN=Will be overwritten,C=IT";
+ $cmd_panel->[0] = '<input type=button name=cont value="'.gettext("OK").'" OnClick="GenReq()">'."\n";
+ } else {
+ $cmd_panel->[0] = '<input type=submit value="'.gettext ("OK")."\">\n";
+ }
$cmd_panel->[1] = "<input type=reset value=\"".gettext("Reset")."\">\n";
libSendReply (
@@ -66,7 +74,8 @@
"EXPLANATION" => gettext ("You need to enter some additional parameters for the requested functionality."),
"HIDDEN_LIST" => $hidden_list,
"INFO_LIST" => $info_list,
- "CMD_PANEL" => $cmd_panel
+ "CMD_PANEL" => $cmd_panel,
+ "IE_REQUEST_CERT" => $ie_cert
);
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users