Server generation script fails to activate available Letsencrypt certificate
short description
I have a working website with already (previously manually generated) valid le certificate. The output does not deliver anything, thus no certificate file can be parsed, and no certificate link is generated in the ssl directory.
How to reproduce:
- try to enable letsencrypt on a fresh domain with letsencrypt server check enabled (this will fail) then open the debug log, copy out the command for the letsencrypt command and start it in shell (without switch -n) --> This works!
- now try to enable Letsencrypt --> will not work, Letsencrypt simply doesn't return certificate paths and thus no cert_temp_path available, and isp3 logs "cert file does not exist).
correct behaviour
The certificate will be generated always if the domain is correctly configured
environment
Server OS: debian Server OS version: Debian GNU/Linux 9.11 (stretch) ISPConfig version: 3.1.15
Server version: Apache/2.4.25 (Debian)
Server built: 2019-08-19T19:25:31
23.09.2019-10:03 - DEBUG - Create Let's Encrypt SSL Cert for: xxx.yyy.zzz 23.09.2019-10:03 - DEBUG - Let's Encrypt SSL Cert domains: --domains xxx.yyy.zzz 23.09.2019-10:03 - DEBUG - exec: /usr/bin/letsencrypt certonly -n --text --agree-tos --expand --authenticator webroot --server https://acme-v02.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@xxx.yyy.zzz --domains xxx.yyy.zzz --webroot-path /usr/local/ispconfig/interface/acme 23.09.2019-10:03 - DEBUG - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 23.09.2019-10:03 - DEBUG - Let's Encrypt Cert file: does not exist.** 23.09.2019-10:03 - DEBUG - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 23.09.2019-10:03 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/xxx.yyy.zzz.vhost 23.09.2019-10:03 - DEBUG - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 0 23.09.2019-10:03 - DEBUG - Writing the PHP-FPM config file: /etc/php/7.3/fpm/pool.d/web257.conf 23.09.2019-10:03 - DEBUG - Calling function 'restartPHP_FPM' from module 'web_module'. 23.09.2019-10:03 - DEBUG - Restarting php-fpm: systemctl reload php7.3-fpm.service 23.09.2019-10:03 - DEBUG - Apache status is: running 23.09.2019-10:03 - DEBUG - Calling function 'restartHttpd' from module 'web_module'. 23.09.2019-10:03 - DEBUG - Restarting httpd: systemctl restart apache2.service