As this turned out to be a long discussion, I will summarize it so that it is easier for anyone else who comes across this to find the solution:
Could not get nonce, let's try again.
- To fix the issue we had to update the script from the dev branch of the acme repo:
sudo /etc/letsencrypt/acme.sh --upgrade -b dev
- After that, we noticed that the updated script was stored at:
- To renew the SSL certificate we had to run:
/root/.acme.sh/acme.sh --force --renew --home /etc/letsencrypt --domain yourdomain.com --webroot /var/www/ghost/system/nginx-root --reloadcmd "nginx -s reload" --accountemail firstname.lastname@example.org
- We also had to adjust the cronjob so that the certificate could be renewed automatically, so we had to change the path from
/root/.acme.sh/acme.sh, to do that just run:
acme.sh cronjob and change the path accordingly.
Hope that this helps anyone who comes across the same issue!