Commit faddefbe authored by tbrehm's avatar tbrehm

Set SSL validity for smtp ssl certs to 10 years.

parent c5842507
...@@ -553,7 +553,7 @@ class installer_base { ...@@ -553,7 +553,7 @@ class installer_base {
if(!stristr($options,'dont-create-certs')) { if(!stristr($options,'dont-create-certs')) {
//* Create the SSL certificate //* Create the SSL certificate
$command = 'cd '.$config_dir.'; ' $command = 'cd '.$config_dir.'; '
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509'; .'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
exec($command); exec($command);
$command = 'chmod o= '.$config_dir.'/smtpd.key'; $command = 'chmod o= '.$config_dir.'/smtpd.key';
......
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