acme.sh always fails with 'Verify error:Invalid response' msg when using ispconfig_update.sh

short description

Creating LE cert with acme.sh when running ispconfig_update.sh or ispconfig_update.sh --force always fails with Verify error:Invalid response error message.

When using "Manual update instructions", process runs without errors and LE cert is issued and installed for all ISPConfig apps.

correct behaviour

ispconfig_update.sh should function the same as "manual update instruction".

Maybe my reasoning is wrong and "manual update instruction" needs to be used when LE certs are generated for the first time. :)

environment

Server OS: debian

Server OS version: stretch and buster

ISPConfig version: 3.1.5 and newer

Run on multiple server instances, either with no LE client installed before or they had certbot before (which was cleaned along with all files/folders before update).

log entries

ispconfig-update-first-run.txt - first time trying ispconfig_update.sh --force after installing acme.sh client

ispconfig-update-second-run.txt - second time trying ispconfig_update.sh --force

ispconfig-update-third-run.txt - using "manual update instruction"

Make note of /root/.acme.sh/hosting.premiumbrands.rs/ folder contents: cert, fullchain and ca files get generated only on 3rd run.