File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ public function configure_postfix($options = '')
121121 {
122122 if (AUTOINSTALL ){
123123 $ command = 'cd ' .$ config_dir .'; '
124- ."openssl req -new -subj '/C= " .$ autoinstall ['ssl_cert_country ' ]."/ST= " .$ autoinstall ['ssl_cert_state ' ]."/L= " .$ autoinstall ['ssl_cert_locality ' ]."/O= " .$ autoinstall ['ssl_cert_organisation ' ]."/OU= " .$ autoinstall ['ssl_cert_organisation_unit ' ]."/CN= " .$ autoinstall ['ssl_cert_common_name ' ]."' -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509 " ;
124+ ."openssl req -new -subj '/C= " .escapeshellcmd ( $ autoinstall ['ssl_cert_country ' ]) ."/ST= " .escapeshellcmd ( $ autoinstall ['ssl_cert_state ' ]) ."/L= " .escapeshellcmd ( $ autoinstall ['ssl_cert_locality ' ]) ."/O= " .escapeshellcmd ( $ autoinstall ['ssl_cert_organisation ' ]) ."/OU= " .escapeshellcmd ( $ autoinstall ['ssl_cert_organisation_unit ' ]) ."/CN= " .escapeshellcmd ( $ autoinstall ['ssl_cert_common_name ' ]) ."' -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509 " ;
125125 } else {
126126 $ command = 'cd ' .$ config_dir .'; '
127- ." openssl req -new -subj '/C= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_country ' ]). " /ST= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_state ' ]). " /L= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_locality ' ]). " /O= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_organisation ' ]). " /OU= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_organisation_unit ' ]). " /CN= " . escapeshellcmd ( $ autoinstall [ ' ssl_cert_common_name ' ]). " ' - outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509" ;
127+ .' openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509 ' ;
128128 }
129129
130130 $ command = 'chmod o= ' .$ config_dir .'/smtpd.key ' ;
You can’t perform that action at this time.
0 commit comments