Skip to content

SSL 证书申请

安装 acme.sh

bash
curl https://get.acme.sh | sh -s email=my@example.com

配置别名

bash
alias acme.sh=~/.acme.sh/acme.sh && source ~/.bashrc

申请证书

使用 网站根路径 (webroot) 方式申请

bash
acme.sh --issue -d example.com --webroot /home/wwwroot/mydomain.com/public/

参考

https://github.com/acmesh-official/acme.sh

手动 DNS 方式

只有DNS方式支持通配符

shell
acme.sh --issue -d *.example.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please

acme.sh --renew -d *.example.com --yes-I-know-dns-manual-mode-enough-go-ahead-please

Released under the MIT License.