summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-08-01 18:37:54 -0300
committerRenato Botelho <renato@netgate.com>2016-08-01 18:37:54 -0300
commit3bc220542ee15d729cc280c1dd651322f2208533 (patch)
treef5b8ad5c400420df2ed8d39e699d91881d59ae27 /src/usr
parent94e3fc6457daeb9652919d1340b39561379b6779 (diff)
parentdbcc45d11302971758254bad024792edfd23de71 (diff)
downloadpfsense-3bc220542ee15d729cc280c1dd651322f2208533.zip
pfsense-3bc220542ee15d729cc280c1dd651322f2208533.tar.gz
Merge pull request #3073 from phil-davis/certs
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/system_camanager.php4
-rw-r--r--src/usr/local/www/system_certmanager.php4
-rw-r--r--src/usr/local/www/system_usermanager.php7
3 files changed, 10 insertions, 5 deletions
diff --git a/src/usr/local/www/system_camanager.php b/src/usr/local/www/system_camanager.php
index 4c86ac6..4c4a9f3 100644
--- a/src/usr/local/www/system_camanager.php
+++ b/src/usr/local/www/system_camanager.php
@@ -67,8 +67,8 @@ $ca_methods = array(
"internal" => gettext("Create an internal Certificate Authority"),
"intermediate" => gettext("Create an intermediate Certificate Authority"));
-$ca_keylens = array("512", "1024", "2048", "4096");
-$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512");
+$ca_keylens = array("512", "1024", "2048", "3072", "4096", "7680", "8192", "15360", "16384");
+$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512", "whirlpool");
if (is_numericint($_GET['id'])) {
$id = $_GET['id'];
diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php
index 56de88a..08e8b88 100644
--- a/src/usr/local/www/system_certmanager.php
+++ b/src/usr/local/www/system_certmanager.php
@@ -68,13 +68,13 @@ $cert_methods = array(
"external" => gettext("Create a Certificate Signing Request"),
);
-$cert_keylens = array("512", "1024", "2048", "4096");
+$cert_keylens = array("512", "1024", "2048", "3072", "4096", "7680", "8192", "15360", "16384");
$cert_types = array(
"server" => "Server Certificate",
"user" => "User Certificate");
$altname_types = array("DNS", "IP", "email", "URI");
-$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512");
+$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512", "whirlpool");
if (is_numericint($_GET['userid'])) {
$userid = $_GET['userid'];
diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php
index 2033a87..4b46efc 100644
--- a/src/usr/local/www/system_usermanager.php
+++ b/src/usr/local/www/system_usermanager.php
@@ -915,9 +915,14 @@ if ($act == "new" || $act == "edit" || $input_errors):
512 => '512 bits',
1024 => '1024 bits',
2048 => '2048 bits',
+ 3072 => '3072 bits',
4096 => '4096 bits',
+ 7680 => '7680 bits',
+ 8192 => '8192 bits',
+ 15360 => '15360 bits',
+ 16384 => '16384 bits'
)
- ));
+ ))->setHelp('The larger the key, the more security it offers, but larger keys take considerably more time to generate, and take slightly longer to validate leading to a slight slowdown in setting up new sessions (not always noticeable). As of 2016, 2048 bit is the minimum and most common selection and 4096 is the maximum in common use. For more information see &lt;a href="https://keylength.com"&gt;keylength.com&lt;/a&gt;.');
$section->addInput(new Form_Input(
'lifetime',
OpenPOWER on IntegriCloud