summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-02-18 08:46:17 -0500
committerjim-p <jimp@pfsense.org>2013-02-18 08:46:17 -0500
commit24c0145c2cdb7eb8006020579c7c8b82f0108412 (patch)
treebda88b6ad6a65b27e61d44c477f589f01a74349f /usr
parent3e9c81b228e5bd0a1829c68c579f2becef7840e3 (diff)
downloadpfsense-24c0145c2cdb7eb8006020579c7c8b82f0108412.zip
pfsense-24c0145c2cdb7eb8006020579c7c8b82f0108412.tar.gz
Add Digest Algorithm option to the CSR screen, should fix #2820
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/system_certmanager.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php
index b120015..8450cf0 100644
--- a/usr/local/www/system_certmanager.php
+++ b/usr/local/www/system_certmanager.php
@@ -856,6 +856,22 @@ function internalca_change() {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Digest Algorithm");?></td>
+ <td width="78%" class="vtable">
+ <select name='digest_alg' id='digest_alg' class="formselect">
+ <?php
+ foreach( $openssl_digest_algs as $digest_alg):
+ $selected = "";
+ if ($pconfig['digest_alg'] == $digest_alg)
+ $selected = " selected";
+ ?>
+ <option value="<?=$digest_alg;?>"<?=$selected;?>><?=strtoupper($digest_alg);?></option>
+ <?php endforeach; ?>
+ </select>
+ <br/><?= gettext("NOTE: It is recommended to use an algorithm stronger than SHA1 when possible.") ?>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
<td width="78%" class="vtable">
<table border="0" cellspacing="0" cellpadding="2">
OpenPOWER on IntegriCloud