summaryrefslogtreecommitdiff
path: root/pages/account/10.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-03-20 00:43:07 +0100
committerMichael Tänzer <neo@nhng.de>2014-03-20 00:43:07 +0100
commit8df925a3427bb53432bd7cff8344e69e0c6c8526 (patch)
tree2ae6d26c5fb9895e48bf7738f9dec4ac2f7f345b /pages/account/10.php
parent1d08addf60c2db2dbe673dc0644555897927379d (diff)
downloadcacert-devel-8df925a3427bb53432bd7cff8344e69e0c6c8526.tar.gz
cacert-devel-8df925a3427bb53432bd7cff8344e69e0c6c8526.tar.xz
cacert-devel-8df925a3427bb53432bd7cff8344e69e0c6c8526.zip
bug 807: Allow changing the hash algorithm used in signing
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/account/10.php')
-rw-r--r--pages/account/10.php27
1 files changed, 23 insertions, 4 deletions
diff --git a/pages/account/10.php b/pages/account/10.php
index 56d6730..82e4c87 100644
--- a/pages/account/10.php
+++ b/pages/account/10.php
@@ -45,13 +45,32 @@
<div id="advanced_options">
<? if($_SESSION['profile']['points'] >= 50) { ?>
-<p>
- <input type="radio" id="root1" name="rootcert" value="1" /> <label for="root1"><?=_("Sign by class 1 root certificate")?></label><br />
- <input type="radio" id="root2" name="rootcert" value="2" checked="checked" /> <label for="root2"><?=_("Sign by class 3 root certificate")?></label>
-</p>
+<ul class="no_indent">
+ <li>
+ <input type="radio" id="root1" name="rootcert" value="1" />
+ <label for="root1"><?=_("Sign by class 1 root certificate")?></label>
+ </li>
+ <li>
+ <input type="radio" id="root2" name="rootcert" value="2" checked="checked" />
+ <label for="root2"><?=_("Sign by class 3 root certificate")?></label>
+ </li>
+</ul>
<p><?=_("Please note: The class 3 root certificate needs to be setup in your webserver as a chained certificate, while slightly more complicated to setup, this root certificate is more likely to be trusted by more people.")?></p>
<? } ?>
+<p class="attach_ul"><?=_("Hash algorithm used when signing the certificate:")?></p>
+<ul class="no_indent">
+<?
+foreach (HASH_ALGORITHMS as $algorithm => $display_string) {
+?>
+ <li>
+ <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> />
+ <label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label>
+ </li>
+<?
+} ?>
+</ul>
+
</div>
</fieldset>