Message: Command failed: /bin/sh -c sudo -S -p ‘#node-sudo-passwd#’ /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain dev.domain.com --webroot /var/www/dev/system/nginx-root --reloadcmd “nginx -s reload” --accountemail contact@domain.com
[Wed Oct 9 12:58:00 UTC 2019] Error, can not get domain token entry my.domain.com
[Wed Oct 9 12:58:00 UTC 2019] Please add ‘–debug’ or ‘–log’ to check more details.
[Wed Oct 9 12:58:00 UTC 2019] See: How to debug acme.sh · acmesh-official/acme.sh Wiki · GitHub
[Wed Oct 9 12:57:09 UTC 2019] Single domain='my.domain.com'
[Wed Oct 9 12:57:09 UTC 2019] Getting domain auth token for each domain
[Wed Oct 9 12:57:09 UTC 2019] Getting webroot for domain='my.domain.com'
[Wed Oct 9 12:57:09 UTC 2019] Getting new-authz for domain='my.domain.com'
[Wed Oct 9 12:57:10 UTC 2019] Could not get nonce, let's try again.
[Wed Oct 9 12:57:13 UTC 2019] Could not get nonce, let's try again.
[Wed Oct 9 12:57:15 UTC 2019] Could not get nonce, let's try again.
[Wed Oct 9 12:58:00 UTC 2019] The new-authz request is ok.
Exit code: 1
On the web I found someone who says to update acme or launch the command using some additional parameter, but I’m afraid of compromising the system, I haven’t tried it yet.
Nginx configuration already found for this url. Skipping Nginx setup.
ℹ Setting up Nginx [skipped]
Nginx setup task was skipped, skipping SSL setup
ℹ Setting up SSL [skipped]
Hi,
I have similar issue and unable to renew my certificate. I hasn’t happened automatically and it doesn’t work with acme script. I’m out of ideas. Here’s output of /etc/letsencrypt/acme.sh --home "/etc/letsencrypt" --renew -d mydomain.pl --webroot /var/www/ghost/system/nginx-root
[Sat Nov 2 20:01:05 CET 2019] GET
[Sat Nov 2 20:01:05 CET 2019] url='https://acme-v01.api.letsencrypt.org/directory'
[Sat Nov 2 20:01:05 CET 2019] timeout=
[Sat Nov 2 20:01:05 CET 2019] _CURL='curl -L --silent --dump-header /etc/letsencrypt/http.header -g '
[Sat Nov 2 20:01:06 CET 2019] ret='0'
[Sat Nov 2 20:01:06 CET 2019] Could not get nonce, let's try again.
...
[Sat Nov 2 20:01:23 CET 2019] Error, can not get domain token entry ...
I noticed that acme renew command only finds domains that are in /etc/letsencrypt/live folder, but ghost certificates go to /etc/letsencrypt/[domain] by default so renew command doesn’t even recognize that domain.
I’m also on ubuntu 18.04
Node v10.16.3
Ghost-CLI version: 1.12.0
Ghost version: 2.28.0