acmesh-official / acmesh-official/acme.sh
Triggered _on_issue_err with "config file is empty, can not read CA_KEY_HASH" notice before
- Lingua principale
- Shell
- Stelle
- 47.6k
- Fork
- 5.7k
- Merge medio
- 6g 5h
- PR unite (30g)
- 15
Descrizione
Steps to reproduce
------------------
My system: Ubuntu 22
Already update acme.sh with `acme.sh --upgrade`
But failed when issuing as:
acme.sh --issue -d www.hutdoo.info -w /home/web/webpage
Debug log
-----------------
[Mon Apr 22 09:08:48 UTC 2024] **_on_before_issue**
[Mon Apr 22 09:08:48 UTC 2024] _chk_main_domain='www.hutdoo.info'
[Mon Apr 22 09:08:48 UTC 2024] _chk_alt_domains
[Mon Apr 22 09:08:48 UTC 2024] '/home/web/webpage' does not contain 'no'
[Mon Apr 22 09:08:48 UTC 2024] Le_LocalAddress
[Mon Apr 22 09:08:48 UTC 2024] d='www.hutdoo.info'
[Mon Apr 22 09:08:48 UTC 2024] Check for domain='www.hutdoo.info'
[Mon Apr 22 09:08:48 UTC 2024] _currentRoot='/home/web/webpage'
[Mon Apr 22 09:08:48 UTC 2024] d
[Mon Apr 22 09:08:48 UTC 2024] '/home/web/webpage' does not contain 'apache'
[Mon Apr 22 09:08:48 UTC 2024]**_r_c_f='/root/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory/ca.conf'**
[Mon Apr 22 09:08:48 UTC 2024]**_sdkey='CA_KEY_HASH'**
[Mon Apr 22 09:08:48 UTC 2024] **config file is empty, can not read CA_KEY_HASH**
[Mon Apr 22 09:08:48 UTC 2024] _saved_account_key_hash
[Mon Apr 22 09:08:48 UTC 2024] _initpath
[Mon Apr 22 09:08:48 UTC 2024] Using config home:/root/.acme.sh
[Mon Apr 22 09:08:48 UTC 2024] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
[Mon Apr 22 09:08:48 UTC 2024] _ACME_SERVER_HOST='acme-v02.api.letsencrypt.org'
[Mon Apr 22 09:08:48 UTC 2024] _ACME_SERVER_PATH='directory'
[Mon Apr 22 09:08:48 UTC 2024] _init api for server: https://acme-v02.api.letsencrypt.org/directory
[Mon Apr 22 09:08:48 UTC 2024] Only RSA or EC key is supported. keyfile=/root/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory/account.key
[Mon Apr 22 09:08:48 UTC 2024]
[Mon Apr 22 09:08:48 UTC 2024] _on_issue_err
[Mon Apr 22 09:08:48 UTC 2024] Please check log file for more details: /root/.acme.sh/acme.sh.log
[Mon Apr 22 09:08:48 UTC 2024] _chk_vlist
### I checked:
-----------------
The file /root/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory/ca.conf doesn't exist. Only file _account.key_ exist.
root@secure-laser-1:~/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory# ll
total 8
drwxr-xr-x 2 root root 4096 Apr 22 06:02 ./
drwxr-xr-x 3 root root 4096 Apr 21 05:06 ../
-rw------- 1 root root 0 Apr 21 05:06 _account.key_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce with `acme.sh --issue -d www.hutdoo.info -w /home/web/webpage` and the debug log to confirm the same `_on_issue_err` sequence. First inspect `acme.sh` where `_r_c_f`, `_sdkey`/`CA_KEY_HASH`, and `_saved_account_key_hash` are handled for `~/.acme.sh/ca/acme-v02.api.letsencrypt.org/directory/ca.conf`. Check how and when `ca.conf` should be created when only `_account.key` exists. Done when rerunning no longer logs `config file is empty, can not read CA_KEY_HASH` and issue flow continues.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bash, shell
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 66/100