Commit c3d7ae4a authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(cert) Allow keysize up to 8192, closes https://github.com/opnsense/core/issues/960

(cherry picked from commit 74428f5b)
parent 31175631
...@@ -129,7 +129,7 @@ function ca_inter_create(&$ca, $keylen, $lifetime, $dn, $caref, $digest_alg = 's ...@@ -129,7 +129,7 @@ function ca_inter_create(&$ca, $keylen, $lifetime, $dn, $caref, $digest_alg = 's
} }
$ca_keylens = array( "512", "1024", "2048", "4096"); $ca_keylens = array( "512", "1024", "2048", "4096", "8192");
$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512"); $openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512");
if (!is_array($config['cert'])) { if (!is_array($config['cert'])) {
......
...@@ -86,7 +86,7 @@ $cert_methods = array( ...@@ -86,7 +86,7 @@ $cert_methods = array(
"internal" => gettext("Create an internal Certificate"), "internal" => gettext("Create an internal Certificate"),
"external" => gettext("Create a Certificate Signing Request"), "external" => gettext("Create a Certificate Signing Request"),
); );
$cert_keylens = array( "512", "1024", "2048", "4096"); $cert_keylens = array( "512", "1024", "2048", "4096", "8192");
$openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512"); $openssl_digest_algs = array("sha1", "sha224", "sha256", "sha384", "sha512");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment