Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我该如何在一台服务器上自动更新并安装多个域名证书? #4600

Closed
wang745125665 opened this issue Apr 17, 2023 · 1 comment

Comments

@wang745125665
Copy link

wang745125665 commented Apr 17, 2023

我尝试了,写两个install-cert ,但是他只执行了后面的那个,所以acme可以支持同时安装两个不同的域名证书吗

Steps to reproduce

/root/.acme.sh/acme.sh --install-cert -d *.comet.example.com
--key-file /home/www/files/acme/comet.example.com.key.pem
--fullchain-file /home/www/files/acme/comet.example.com.cert.pem
--install-cert -d *.example.com
--key-file /home/www/files/acme/example.com.key.pem
--fullchain-file /home/www/files/acme/example.com.cert.pem
--reloadcmd "docker restart web_server" --debug 2

Debug log

[Mon Apr 17 11:58:08 CST 2023] Lets find script dir.
[Mon Apr 17 11:58:08 CST 2023] SCRIPT='/root/.acme.sh/acme.sh'
[Mon Apr 17 11:58:08 CST 2023] _script='/root/.acme.sh/acme.sh'
[Mon Apr 17 11:58:08 CST 2023] _script_home='/root/.acme.sh'
[Mon Apr 17 11:58:08 CST 2023] Using config home:/root/.acme.sh
[Mon Apr 17 11:58:08 CST 2023] LE_WORKING_DIR='/root/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.0.6
[Mon Apr 17 11:58:08 CST 2023] Running cmd: installcert
[Mon Apr 17 11:58:08 CST 2023] Using config home:/root/.acme.sh
[Mon Apr 17 11:58:08 CST 2023] default_acme_server
[Mon Apr 17 11:58:08 CST 2023] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
[Mon Apr 17 11:58:08 CST 2023] _ACME_SERVER_HOST='acme.zerossl.com'
[Mon Apr 17 11:58:08 CST 2023] _ACME_SERVER_PATH='v2/DV90'
[Mon Apr 17 11:58:08 CST 2023] DOMAIN_PATH='/root/.acme.sh/*.comet.example.com'
[Mon Apr 17 11:58:08 CST 2023] Installing key to: /home/www/files/acme/example.com.key.pem
[Mon Apr 17 11:58:08 CST 2023] Installing full chain to: /home/www/files/acme/example.com.cert.pem
[Mon Apr 17 11:58:08 CST 2023] Run reload cmd: docker restart web_server
web_server
[Mon Apr 17 11:58:18 CST 2023] Reload success

@acmesh-official acmesh-official deleted a comment from github-actions bot Apr 20, 2023
@Neilpang
Copy link
Member

目前只能保存最后一次 installcert.

想要执行多个任务, 可以 自己写一个 脚本, 然后通过 reloadcmd 来执行.

acme.sh --install-cert  -d xxxxxx   --reloadcmd  /path/to/my/reload.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants