increase the default cert lifetime

This commit is contained in:
Chris Buechler 2009-12-21 02:32:21 -05:00
parent 0cdaaa8ed8
commit cf36049547
4 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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";
}

View File

@ -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") {

View File

@ -67,7 +67,7 @@ foreach ($a_ca as $ca)
if ($_GET) {
$pconfig['keylen'] = "2048";
$pconfig['lifetime'] = "365";
$pconfig['lifetime'] = "3650";
}
if ($_POST) {