Skip to content

Commit e514ae7

Browse files
author
hellkat
committed
Implemented FS#2595 - postfix RSA certificate generation.
- Postfix SSL Key is now 4096 bit for greater security
1 parent 4586d50 commit e514ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ public function configure_postfix($options = '') {
732732
if(!stristr($options,'dont-create-certs')) {
733733
//* Create the SSL certificate
734734
$command = 'cd '.$config_dir.'; '
735-
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
735+
.'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509';
736736
exec($command);
737737

738738
$command = 'chmod o= '.$config_dir.'/smtpd.key';
@@ -2229,4 +2229,4 @@ protected function insert_db_credentials($tContents) {
22292229
}
22302230
}
22312231

2232-
?>
2232+
?>

0 commit comments

Comments
 (0)