ISPC 3.1.5 Nginx+LetsEncrypt not create configuration with LE
This patch not working bba7b07c
Once the LE certificate option is selected, a certificate is created on the system, but it is not added to the Nginx configuration.
As I wrote the problem is in the plugin Nginx.
Configuration: Multisetup ISPC Debian Jessie
- ISPC panel 3.1.5,
- ISPC server 3.1.5,
- Nginx 1.10.3-1~dotdeb+8.1
- SSL configuration for server: "Skip Lets Encrypt Check: enabled" in MySQL dbispconfig.server config: skip_le_check=y
diff nginx_plugin.inc.php_3.1.3 nginx_plugin.inc.php_3.1.5
< $le_hash_check = trim(@file_get_contents('http://' . $temp_domain . '/.well-known/acme-challenge/' . $le_rnd_file));
< if($le_hash_check == $le_rnd_hash) {
---
> if(isset($web_config['skip_le_check']) && $web_config['skip_le_check'] == 'y') {
1298d1294
< $app->log("Verified domain " . $temp_domain . " should be reachable for letsencrypt.", LOGLEVEL_DEBUG);
1300c1296,1302
< $app->log("Could not verify domain " . $temp_domain . ", so excluding it from letsencrypt request.", LOGLEVEL_WARN);
---
> $le_hash_check = trim(@file_get_contents('http://' . $temp_domain . '/.well-known/acme-challenge/' . $le_rnd_file));
> if($le_hash_check == $le_rnd_hash) {
> $le_domains[] = $temp_domain;
> $app->log("Verified domain " . $temp_domain . " should be reachable for letsencrypt.", LOGLEVEL_DEBUG);
> } else {
> $app->log("Could not verify domain " . $temp_domain . ", so excluding it from letsencrypt request.", LOGLEVEL_WARN);
> }
1319a1322,1325
> if(!is_dir("/etc/letsencrypt/live/".$domain)) {
> $crt_tmp_file = "/etc/letsencrypt/live/www.".$domain."/fullchain.pem";
> $key_tmp_file = "/etc/letsencrypt/live/www.".$domain."/privkey.pem";
> }