When I’m trying to issue a certificate for my domain using acme.sh by run the following command:
acme.sh --issue -d pedia.id -w /var/www/pedia/
I got the following error that says
pedia.id:Verify error:Invalid response from http://pedia.id/.well-known/acme-challenge/Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y [209.97.175.240]:
When I’m checking the log, here what it says
Running cmd: cron
[Tue Aug 27 00:01:01 UTC 2019] Using config home:/home/pr4m/.acme.sh
[Tue Aug 27 00:01:01 UTC 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Tue Aug 27 00:01:01 UTC 2019] ===Starting cron===
[Tue Aug 27 00:01:01 UTC 2019] Using config home:/home/pr4m/.acme.sh
[Tue Aug 27 00:01:01 UTC 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Tue Aug 27 00:01:02 UTC 2019] _stopRenewOnError
[Tue Aug 27 00:01:02 UTC 2019] _set_level='2'
[Tue Aug 27 00:01:02 UTC 2019] di='/home/pr4m/.acme.sh/pedia.id/'
[Tue Aug 27 00:01:02 UTC 2019] d='pedia.id'
[Tue Aug 27 00:01:02 UTC 2019] Using config home:/home/pr4m/.acme.sh
[Tue Aug 27 00:01:02 UTC 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Tue Aug 27 00:01:02 UTC 2019] DOMAIN_PATH='/home/pr4m/.acme.sh/pedia.id'
[Tue Aug 27 00:01:02 UTC 2019] Renew: 'pedia.id'
[Tue Aug 27 00:01:02 UTC 2019] Le_API
[Tue Aug 27 00:01:02 UTC 2019] Skip invalid cert for: pedia.id
[Tue Aug 27 00:01:02 UTC 2019] Return code: 2
[Tue Aug 27 00:01:02 UTC 2019] Skipped pedia.id
[Tue Aug 27 00:01:02 UTC 2019] _error_level='3'
[Tue Aug 27 00:01:02 UTC 2019] _set_level='2'
[Tue Aug 27 00:01:02 UTC 2019] ===End cron===
[Tue Aug 27 12:27:43 UTC 2019] Running cmd: issue
[Tue Aug 27 12:27:43 UTC 2019] _main_domain='pedia.id'
[Tue Aug 27 12:27:43 UTC 2019] _alt_domains='no'
[Tue Aug 27 12:27:43 UTC 2019] Using config home:/home/pr4m/.acme.sh
[Tue Aug 27 12:27:43 UTC 2019] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Tue Aug 27 12:27:43 UTC 2019] DOMAIN_PATH='/home/pr4m/.acme.sh/pedia.id'
[Tue Aug 27 12:27:43 UTC 2019] Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
[Tue Aug 27 12:27:43 UTC 2019] _init api for server: https://acme-v02.api.letsencrypt.org/directory
[Tue Aug 27 12:27:43 UTC 2019] GET
[Tue Aug 27 12:27:43 UTC 2019] url='https://acme-v02.api.letsencrypt.org/directory'
[Tue Aug 27 12:27:43 UTC 2019] timeout=
[Tue Aug 27 12:27:43 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:44 UTC 2019] ret='0'
[Tue Aug 27 12:27:44 UTC 2019] ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
[Tue Aug 27 12:27:44 UTC 2019] ACME_NEW_AUTHZ
[Tue Aug 27 12:27:44 UTC 2019] ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
[Tue Aug 27 12:27:44 UTC 2019] ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
[Tue Aug 27 12:27:44 UTC 2019] ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
[Tue Aug 27 12:27:44 UTC 2019] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf'
[Tue Aug 27 12:27:44 UTC 2019] ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
[Tue Aug 27 12:27:44 UTC 2019] ACME_VERSION='2'
[Tue Aug 27 12:27:44 UTC 2019] Le_NextRenewTime
[Tue Aug 27 12:27:44 UTC 2019] _on_before_issue
[Tue Aug 27 12:27:44 UTC 2019] _chk_main_domain='pedia.id'
[Tue Aug 27 12:27:44 UTC 2019] _chk_alt_domains
[Tue Aug 27 12:27:44 UTC 2019] Le_LocalAddress
[Tue Aug 27 12:27:44 UTC 2019] d='pedia.id'
[Tue Aug 27 12:27:44 UTC 2019] Check for domain='pedia.id'
[Tue Aug 27 12:27:44 UTC 2019] _currentRoot='/var/www/pedia'
[Tue Aug 27 12:27:44 UTC 2019] d
[Tue Aug 27 12:27:44 UTC 2019] _saved_account_key_hash is not changed, skip register account.
[Tue Aug 27 12:27:44 UTC 2019] Read key length:
[Tue Aug 27 12:27:44 UTC 2019] _createcsr
[Tue Aug 27 12:27:44 UTC 2019] Single domain='pedia.id'
[Tue Aug 27 12:27:44 UTC 2019] Getting domain auth token for each domain
[Tue Aug 27 12:27:44 UTC 2019] d
[Tue Aug 27 12:27:44 UTC 2019] url='https://acme-v02.api.letsencrypt.org/acme/new-order'
[Tue Aug 27 12:27:44 UTC 2019] payload='{"identifiers": [{"type":"dns","value":"pedia.id"}]}'
[Tue Aug 27 12:27:44 UTC 2019] RSA key
[Tue Aug 27 12:27:44 UTC 2019] HEAD
[Tue Aug 27 12:27:44 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
[Tue Aug 27 12:27:44 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:44 UTC 2019] _ret='0'
[Tue Aug 27 12:27:44 UTC 2019] POST
[Tue Aug 27 12:27:44 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
[Tue Aug 27 12:27:44 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:45 UTC 2019] _ret='0'
[Tue Aug 27 12:27:45 UTC 2019] code='201'
[Tue Aug 27 12:27:45 UTC 2019] Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/64252358/972126645'
[Tue Aug 27 12:27:45 UTC 2019] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/64252358/972126645'
[Tue Aug 27 12:27:45 UTC 2019] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/77672551'
[Tue Aug 27 12:27:45 UTC 2019] payload
[Tue Aug 27 12:27:45 UTC 2019] POST
[Tue Aug 27 12:27:45 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/77672551'
[Tue Aug 27 12:27:45 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:45 UTC 2019] _ret='0'
[Tue Aug 27 12:27:45 UTC 2019] code='200'
[Tue Aug 27 12:27:45 UTC 2019] d='pedia.id'
[Tue Aug 27 12:27:45 UTC 2019] Getting webroot for domain='pedia.id'
[Tue Aug 27 12:27:45 UTC 2019] _w='/var/www/pedia'
[Tue Aug 27 12:27:45 UTC 2019] _currentRoot='/var/www/pedia'
[Tue Aug 27 12:27:45 UTC 2019] entry='"type":"http-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A","token":"Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9F WE7ciR0CuV0Y"'
[Tue Aug 27 12:27:45 UTC 2019] token='Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y'
[Tue Aug 27 12:27:45 UTC 2019] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:45 UTC 2019] keyauthorization='Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y.ttQkvCTbS_-lFZumj6UZgAYGZUcEmcirK0i0u5WvoyA'
[Tue Aug 27 12:27:45 UTC 2019] dvlist='pedia.id#Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y.ttQkvCTbS_-lFZumj6UZgAYGZUcEmcirK0i0u5WvoyA#https://acme-v02.api.letsencrypt.org/acme/chall-v3/77 672551/CCNy5A#http-01#/var/www/pedia'
[Tue Aug 27 12:27:45 UTC 2019] d
[Tue Aug 27 12:27:45 UTC 2019] vlist='pedia.id#Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y.ttQkvCTbS_-lFZumj6UZgAYGZUcEmcirK0i0u5WvoyA#https://acme-v02.api.letsencrypt.org/acme/chall-v3/776 72551/CCNy5A#http-01#/var/www/pedia,'
[Tue Aug 27 12:27:45 UTC 2019] d='pedia.id'
[Tue Aug 27 12:27:45 UTC 2019] ok, let's start to verify
[Tue Aug 27 12:27:45 UTC 2019] Verifying: pedia.id
[Tue Aug 27 12:27:45 UTC 2019] d='pedia.id'
[Tue Aug 27 12:27:45 UTC 2019] keyauthorization='Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y.ttQkvCTbS_-lFZumj6UZgAYGZUcEmcirK0i0u5WvoyA'
[Tue Aug 27 12:27:45 UTC 2019] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:45 UTC 2019] _currentRoot='/var/www/pedia'
[Tue Aug 27 12:27:45 UTC 2019] wellknown_path='/var/www/pedia/.well-known/acme-challenge'
[Tue Aug 27 12:27:45 UTC 2019] writing token:Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y to /var/www/pedia/.well-known/acme-challenge/Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y
[Tue Aug 27 12:27:45 UTC 2019] Changing owner/group of .well-known to pr4m:www-data
[Tue Aug 27 12:27:45 UTC 2019] chown: changing ownership of '/var/www/pedia/.well-known/acme-challenge/Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y': Operation not permitted
[Tue Aug 27 12:27:45 UTC 2019] chown: changing ownership of '/var/www/pedia/.well-known/acme-challenge/Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y': Operation not permitted
[Tue Aug 27 12:27:45 UTC 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:45 UTC 2019] payload='{}'
[Tue Aug 27 12:27:45 UTC 2019] POST
[Tue Aug 27 12:27:45 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:45 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:46 UTC 2019] _ret='0'
[Tue Aug 27 12:27:46 UTC 2019] code='200'
[Tue Aug 27 12:27:46 UTC 2019] trigger validation code: 200
[Tue Aug 27 12:27:46 UTC 2019] sleep 2 secs to verify
[Tue Aug 27 12:27:48 UTC 2019] checking
[Tue Aug 27 12:27:48 UTC 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:48 UTC 2019] payload
[Tue Aug 27 12:27:48 UTC 2019] POST
[Tue Aug 27 12:27:48 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:48 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:48 UTC 2019] _ret='0'
[Tue Aug 27 12:27:48 UTC 2019] code='200'
[Tue Aug 27 12:27:48 UTC 2019] pedia.id:Verify error:Invalid response from http://pedia.id/.well-known/acme-challenge/Ix_5Elrq0cGOxCrBSrMjs_BjHUg8g9FWE7ciR0CuV0Y [209.97.175.240]:
[Tue Aug 27 12:27:48 UTC 2019] pid
[Tue Aug 27 12:27:48 UTC 2019] No need to restore nginx, skip.
[Tue Aug 27 12:27:48 UTC 2019] _clearupdns
[Tue Aug 27 12:27:48 UTC 2019] dns_entries
[Tue Aug 27 12:27:48 UTC 2019] skip dns.
[Tue Aug 27 12:27:48 UTC 2019] _on_issue_err
[Tue Aug 27 12:27:48 UTC 2019] Please check log file for more details: /home/pr4m/.acme.sh/acme.sh.log
[Tue Aug 27 12:27:48 UTC 2019] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:48 UTC 2019] payload='{}'
[Tue Aug 27 12:27:48 UTC 2019] POST
[Tue Aug 27 12:27:48 UTC 2019] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/77672551/CCNy5A'
[Tue Aug 27 12:27:48 UTC 2019] _CURL='curl -L --silent --dump-header /home/pr4m/.acme.sh/http.header -g '
[Tue Aug 27 12:27:48 UTC 2019] _ret='0'
[Tue Aug 27 12:27:48 UTC 2019] code='400'
How can I fix this issue?
Thanks anyone