Let's Encrypt / SSL certificate renewals failing due to outdated acme.sh

Running Splynx 2.3.8896, our Let’s Encrypt certificates via Splynx are failing to renew. When validating the config we were getting:

Running /var/www/splynx/.acme.sh/acme.sh --standalone --home /var/www/splynx/.acme.sh/.testing --pre-hook "service nginx stop" --post-hook "service nginx start" --issue -d removed.example.com -d removed.example.com --staging --force
[Mon  9 Dec 16:36:38 AEDT 2019] Using stage ACME_DIRECTORY: https://acme-staging.api.letsencrypt.org/directory
[Mon  9 Dec 16:36:39 AEDT 2019] Run pre hook:'service nginx stop'
[Mon  9 Dec 16:36:45 AEDT 2019] Standalone mode.
[Mon  9 Dec 16:36:45 AEDT 2019] Standalone mode.
[Mon  9 Dec 16:36:45 AEDT 2019] Multi domain='DNS:removed.example.com,DNS:removed.example.com'
[Mon  9 Dec 16:36:45 AEDT 2019] Getting domain auth token for each domain
[Mon  9 Dec 16:36:45 AEDT 2019] Getting webroot for domain='removed.example.com'
[Mon  9 Dec 16:36:45 AEDT 2019] Getting new-authz for domain='removed.example.com'
[Mon  9 Dec 16:36:46 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:36:49 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:36:52 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:36:55 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:36:59 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:02 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:05 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:08 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:11 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:15 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:18 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:21 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:24 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:27 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:30 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:34 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:37 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:40 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:43 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:46 AEDT 2019] Could not get nonce, let's try again.
[Mon  9 Dec 16:37:48 AEDT 2019] The new-authz request is ok.
[Mon  9 Dec 16:37:48 AEDT 2019] Error, can not get domain token entry removed.example.com
[Mon  9 Dec 16:37:48 AEDT 2019] Please add '--debug' or '--log' to check more details.
[Mon  9 Dec 16:37:48 AEDT 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[Mon  9 Dec 16:37:48 AEDT 2019] Run post hook:'service nginx start'

The issue is related to this issue: https://github.com/Neilpang/acme.sh/issues/2533

The fix is to update the version of acme.sh supplied with Splynx.

/var/www/splynx/.acme.sh/acme.sh --home /var/www/splynx/.acme.sh --upgrade

Then either validate config within Splynx, or disable/enable SSL.

For not you can use also:

cd /var/www/splynx/.acme.sh/
git pull

We will add acme.sh auto update on next Splynx release (beginning of Feb 2020)