Commit e514ae70 authored by hellkat's avatar hellkat

Implemented FS#2595 - postfix RSA certificate generation.

 - Postfix SSL Key is now 4096 bit for greater security
parent 4586d500
...@@ -732,7 +732,7 @@ class installer_base { ...@@ -732,7 +732,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 3650 -x509'; .'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -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';
...@@ -2229,4 +2229,4 @@ class installer_base { ...@@ -2229,4 +2229,4 @@ class installer_base {
} }
} }
?> ?>
\ No newline at end of file
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