找不到路径:'/root/.acme.sh/*.poemhub.top_ecc'

找不到路径:'/root/.acme.sh/*.poemhub.top_ecc'

我使用 acme.sh 更新 SSL 证书并将其存储在如下文件夹中:

[Sun Mar  3 11:36:44 CST 2024] Your cert is in: /root/.acme.sh/*.poemhub.top/*.poemhub.top.cer
[Sun Mar  3 11:36:44 CST 2024] Your cert key is in: /root/.acme.sh/*.poemhub.top/*.poemhub.top.key
[Sun Mar  3 11:36:44 CST 2024] The intermediate CA cert is in: /root/.acme.sh/*.poemhub.top/ca.cer
[Sun Mar  3 11:36:44 CST 2024] And the full chain certs is there: /root/.acme.sh/*.poemhub.top/fullchain.cer

使用此命令更新证书时:

/root/.acme.sh/acme.sh --renew -d "*.poemhub.top" --keylength ec-256 --force

但是当我使用此命令安装时,文件夹名称不匹配,生成的文件夹是:

[Sun Mar  3 12:17:03 CST 2024] Your cert is in: /root/.acme.sh/*.poemhub.top/*.poemhub.top.cer
[Sun Mar  3 12:17:03 CST 2024] Your cert key is in: /root/.acme.sh/*.poemhub.top/*.poemhub.top.key
[Sun Mar  3 12:17:03 CST 2024] The intermediate CA cert is in: /root/.acme.sh/*.poemhub.top/ca.cer
[Sun Mar  3 12:17:03 CST 2024] And the full chain certs is there: /root/.acme.sh/*.poemhub.top/fullchain.cer

加载文件夹是*.poemhub.top_ecc

[root@k8sslave01 source]# /root/.acme.sh/acme.sh --install-cert -d *.poemhub.top --ecc --key-file       /etc/letsencrypt/live/poemhub/privkey.pem  --fullchain-file /etc/letsencrypt/live/poemhub/fullchain.pem --reloadcmd     "/usr/local/openresty/nginx/sbin/nginx -s reload"
[Sun Mar  3 11:49:05 CST 2024] The domain '*.poemhub.top' is not a cert name. You must use the cert name to specify the cert to install.
[Sun Mar  3 11:49:05 CST 2024] Can not find path:'/root/.acme.sh/*.poemhub.top_ecc'

我该怎么做才能匹配文件夹?我可以重命名文件夹吗?

相关内容