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
ISPConfig
ISPConfig 3
Commits
7668f973
Commit
7668f973
authored
Feb 15, 2017
by
Till Brehm
Browse files
Merge branch 'stable-3.1' into 'stable-3.1'
Stable 3.1 See merge request
!525
parents
0f9fa27a
6c07a965
Changes
2
Show whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
7668f973
...
...
@@ -1255,13 +1255,14 @@ class apache2_plugin {
//* check if we have already a Let's Encrypt cert
//if(!file_exists($crt_tmp_file) && !file_exists($key_tmp_file)) {
// we must not skip if cert exists, otherwise changed domains (alias or sub) won't make it to the cert
if
(
!
empty
(
$lddomain
))
{
$app
->
log
(
"Create Let's Encrypt SSL Cert for:
$domain
"
,
LOGLEVEL_DEBUG
);
$app
->
log
(
"Let's Encrypt SSL Cert domains:
$lddomain
"
,
LOGLEVEL_DEBUG
);
}
$success
=
false
;
$letsencrypt
=
explode
(
"
\n
"
,
shell_exec
(
'which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt'
));
$letsencrypt
=
reset
(
$letsencrypt
);
if
(
is_executable
(
$letsencrypt
))
{
if
(
is_executable
(
$letsencrypt
)
&&
!
empty
(
$lddomain
)
)
{
$success
=
$this
->
_exec
(
$letsencrypt
.
" certonly -n --text --agree-tos --expand --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@
$domain
$lddomain
--webroot-path /usr/local/ispconfig/interface/acme"
);
}
if
(
!
$success
)
{
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
7668f973
...
...
@@ -1329,13 +1329,15 @@ class nginx_plugin {
//* check if we have already a Let's Encrypt cert
//if(!file_exists($crt_tmp_file) && !file_exists($key_tmp_file)) {
// we must not skip if cert exists, otherwise changed domains (alias or sub) won't make it to the cert
if
(
!
empty
(
$lddomain
))
{
$app
->
log
(
"Create Let's Encrypt SSL Cert for:
$domain
"
,
LOGLEVEL_DEBUG
);
$app
->
log
(
"Let's Encrypt SSL Cert domains:
$lddomain
"
,
LOGLEVEL_DEBUG
);
}
$success
=
false
;
$letsencrypt
=
explode
(
"
\n
"
,
shell_exec
(
'which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt'
));
$letsencrypt
=
reset
(
$letsencrypt
);
if
(
is_executable
(
$letsencrypt
))
{
if
(
is_executable
(
$letsencrypt
)
&&
!
empty
(
$lddomain
)
)
{
$success
=
$this
->
_exec
(
$letsencrypt
.
" certonly -n --text --agree-tos --expand --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@
$domain
$lddomain
--webroot-path /usr/local/ispconfig/interface/acme"
);
}
if
(
!
$success
)
{
...
...
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