
Acme.sh签发Buypass及ZeroSSL证书的方法
curl https://get.acme.sh | sh
安装acme.sh脚本
ZeroSSL需要自行到官网申请API。
https://app.zerossl.com/developer
1
acme.sh --register-account --server zerossl --eab-kid 你的kid --eab-hmac-key 你的kid密匙
下面方法更简单
1
acme.sh --server https://api.buypass.com/acme/directory --register-account --accountemail [email protected]
Buypass不需要进入官网申请账号,只需要下面一条命令即可注册
1
acme.sh --server https://api.buypass.com/acme/directory --register-account --accountemail 你的邮箱
注册成功会显示相关密匙
手动模式,需要自行到dns添加指向
Buypass证书签发
1
acme.sh --server https://api.buypass.com/acme/directory --issue -d 你的域名 --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
手动去DNS添加完,再次执行--renew
即可签发证书。
Buypass证书更新
1
acme.sh --server https://api.buypass.com/acme/directory --renew -d 你的域名 --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
签发ZeroSSL证书
1
acme.sh --server zerossl --issue -d 你的域名 -d 第二个域名 --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
个人比较喜欢使用标准模式和dns API模式
acme.sh --server zerossl --issue --standalone -d domain.com
上面的--standalone模式必须确保你的域名正确指向你的服务器IP,并且没有任何80端口占用
acme.sh --server zerossl --issue --dns dns_cf -d domain.com
默认安装的证书是在root账号下,使用下面命令安装和复制证书到其它路径
1
2
--key-file /etc/ssl/demodomain.com.key.pem \
--fullchain-file /etc/ssl/demodomain.com.cert.pem
💘 相关文章
- nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate的错误解决方法
- DirectAdmin 域名或ip使用SSL访问的方法
- nginx: [warn] "ssl_stapling" ignored, not supported error
- nginx配置时HTTPS出现"nginx: [warn] "ssl_stapling" ignored"的解决方法
- Caddy配置ssl證書出現One or more domains had a problem:的解決方法
- debian 12安装pve出现/etc/pve/local/pve-ssl.key: failed to load错误的解决方法
- DirectAdmin更改Apache或openlitespeed服务器为nginx
- 在线ssl配置文件生成工具
- 分享两个在线网站ssl评分工具
- 解決使用acme.sh申请zerossl证书出现timeout的解决方法