mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
increase the default cert lifetime
This commit is contained in:
parent
0cdaaa8ed8
commit
cf36049547
@ -650,7 +650,7 @@ function system_webgui_start() {
|
||||
echo "Creating SSL Certificate... ";
|
||||
mwexec("openssl genrsa 1024 > /etc/ssl.key");
|
||||
mwexec("chmod 400 /etc/ssl.key");
|
||||
mwexec("openssl req -new -x509 -nodes -sha1 -days 365 -key /etc/ssl.key > /etc/ssl.crt");
|
||||
mwexec("openssl req -new -x509 -nodes -sha1 -days 3650 -key /etc/ssl.key > /etc/ssl.crt");
|
||||
mwexec("chmod 400 /etc/ssl.crt");
|
||||
$cert_file = "/etc/ssl.crt";
|
||||
$key_file = "/etc/ssl.key";
|
||||
|
||||
@ -88,7 +88,7 @@ if ($act == "del") {
|
||||
if ($act == "new") {
|
||||
$pconfig['method'] = $_GET['method'];
|
||||
$pconfig['keylen'] = "2048";
|
||||
$pconfig['lifetime'] = "365";
|
||||
$pconfig['lifetime'] = "3650";
|
||||
$pconfig['dn_commonname'] = "internal-ca";
|
||||
}
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ if ($act == "del") {
|
||||
if ($act == "new") {
|
||||
$pconfig['method'] = $_GET['method'];
|
||||
$pconfig['keylen'] = "2048";
|
||||
$pconfig['lifetime'] = "365";
|
||||
$pconfig['lifetime'] = "3650";
|
||||
}
|
||||
|
||||
if ($act == "exp") {
|
||||
|
||||
@ -67,7 +67,7 @@ foreach ($a_ca as $ca)
|
||||
|
||||
if ($_GET) {
|
||||
$pconfig['keylen'] = "2048";
|
||||
$pconfig['lifetime'] = "365";
|
||||
$pconfig['lifetime'] = "3650";
|
||||
}
|
||||
|
||||
if ($_POST) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user