Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
c43c293b
Commit
c43c293b
authored
Sep 24, 2014
by
Till Brehm
Browse files
SSL cert for postfix does not get generated properly on Centos.
parent
5686edb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
c43c293b
...
...
@@ -231,10 +231,11 @@ class installer_dist extends installer_base {
//* Create the SSL certificate
if
(
AUTOINSTALL
){
$command
=
'cd '
.
$config_dir
.
'; '
.
"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"
;
.
"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"
;
}
else
{
$command
=
'cd '
.
$config_dir
.
'; '
.
"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"
;
.
'openssl req -new -outform PEM -out smtpd.cert -newkey rsa:4096 -nodes -keyout smtpd.key -keyform PEM -days 3650 -x509'
;
}
}
exec
(
$command
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment