Commit 61c92e61 authored by Till Brehm's avatar Till Brehm

Fixed #4667 Websites UI / Let's Encrypt :: add Option to allow switching to...

Fixed #4667 Websites UI / Let's Encrypt :: add Option to allow switching to fullchain.pem in favor of chain.pem
parent 024c7784
......@@ -1250,12 +1250,20 @@ class apache2_plugin {
// useless data
unset($subdomains);
unset($temp_domains);
$crt_tmp_file = "/etc/letsencrypt/live/".$domain."/cert.pem";
if(version_compare($app->system->getapacheversion(true), '2.4.8', '>=')) {
$crt_tmp_file = "/etc/letsencrypt/live/".$domain."/fullchain.pem";
} else {
$crt_tmp_file = "/etc/letsencrypt/live/".$domain."/cert.pem";
}
$key_tmp_file = "/etc/letsencrypt/live/".$domain."/privkey.pem";
$bundle_tmp_file = "/etc/letsencrypt/live/".$domain."/chain.pem";
if(!is_dir("/etc/letsencrypt/live/".$domain)) {
$crt_tmp_file = "/etc/letsencrypt/live/www.".$domain."/fullchain.pem";
if(version_compare($app->system->getapacheversion(true), '2.4.8', '>=')) {
$crt_tmp_file = "/etc/letsencrypt/live/www.".$domain."/fullchain.pem";
} else {
$crt_tmp_file = "/etc/letsencrypt/live/www.".$domain."/cert.pem";
}
$key_tmp_file = "/etc/letsencrypt/live/www.".$domain."/privkey.pem";
$bundle_tmp_file = "/etc/letsencrypt/live/www.".$domain."/chain.pem";
}
......
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