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

如何导入已创建的证书 #6183

Closed
AubreyHan opened this issue Jan 3, 2025 · 5 comments
Closed

如何导入已创建的证书 #6183

AubreyHan opened this issue Jan 3, 2025 · 5 comments

Comments

@AubreyHan
Copy link

你好,
已通过zerossl面板创建证书,或通过acme.sh创建证书,在另一台新电脑上安装配置acme.sh后,使用acme.sh --list看不到任何证书,renew或者revoke都报错找不到域名。
请问在新环境下如何能同步已有证书?
谢谢!

Steps to reproduce

Debug log

acme.sh  --issue .....   --debug 2
Copy link

github-actions bot commented Jan 3, 2025

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

@AubreyHan
Copy link
Author

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

acme.sh has been update to latest version(v3.1.0).

gcpvm@amesh:~/.acme.sh$ acme.sh --revoke --debug 2 -d demo.aubreyhan.net
[Fri Jan 3 15:42:15 UTC 2025] _is_idn_d='demo.aubreyhan.net'
[Fri Jan 3 15:42:15 UTC 2025] _idn_temp
[Fri Jan 3 15:42:15 UTC 2025] Let's find the script directory.
[Fri Jan 3 15:42:15 UTC 2025] SCRIPT='/home/gcpvm/.acme.sh/acme.sh'
[Fri Jan 3 15:42:15 UTC 2025] _script='/home/gcpvm/.acme.sh/acme.sh'
[Fri Jan 3 15:42:15 UTC 2025] _script_home='/home/gcpvm/.acme.sh'
[Fri Jan 3 15:42:15 UTC 2025] Using config home: /home/gcpvm/.acme.sh
[Fri Jan 3 15:42:15 UTC 2025] LE_WORKING_DIR='/home/gcpvm/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.1.0
[Fri Jan 3 15:42:15 UTC 2025] Running cmd: revoke
[Fri Jan 3 15:42:15 UTC 2025] Using config home: /home/gcpvm/.acme.sh
[Fri Jan 3 15:42:15 UTC 2025] default_acme_server
[Fri Jan 3 15:42:15 UTC 2025] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
[Fri Jan 3 15:42:15 UTC 2025] _ACME_SERVER_HOST='acme.zerossl.com'
[Fri Jan 3 15:42:15 UTC 2025] _ACME_SERVER_PATH='v2/DV90'
[Fri Jan 3 15:42:15 UTC 2025] DOMAIN_PATH='/home/gcpvm/.acme.sh/demo.aubreyhan.net'
[Fri Jan 3 15:42:15 UTC 2025] demo.aubreyhan.net is not an issued domain, skipping.

Thanks

@szhu25
Copy link
Contributor

szhu25 commented Jan 9, 2025

为保证安全,建议复制完整的 .acme.sh 文件夹 (一般在用户根目录, 比如 /root/.acme.sh 或者 /home/user/.acme.sh)到新系统。
如果你完整复制的话,可以理解为直接备份该文件夹,所以CA信息也会被复制进去。 不需要的CA/账户信息可以自己删除。

@Neilpang
Copy link
Member

Neilpang commented Jan 9, 2025

zerossl 的web 面板创建的证书, 和 acme.sh 命令行创建的证书没有任何关系, 即使你使用了同一个email.
他们之间没有任何关联.

@Neilpang Neilpang closed this as completed Jan 9, 2025
@szhu25
Copy link
Contributor

szhu25 commented Jan 9, 2025

zerossl 的web 面板创建的证书, 和 acme.sh 命令行创建的证书没有任何关系, 即使你使用了同一个email. 他们之间没有任何关联.

我认为他的意思是在一台机子的acme.sh创建了证书, 在另外一台安装acme.sh以后无法显示。 感觉这样的话复制创建电脑的.acme.sh文件夹同步到另外一台电脑就ok了…
感觉一次性复制没什么问题, 但是不知道长期同步的话会不会有其他问题

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

3 participants