Nginx使用acme.sh获取SSL证书
使用acme.sh可以处理网站不能直接在外网访问的情况。通过在DNS解析中添加TXT记录来验证
curl https://get.acme.sh | sh -s [email protected]
# 默认安装路径
~/.acme.sh/
# 配置别名方便使用
alias acme.sh=~/.acme.sh/acme.sh
# 根据生成的内容,将txt内容添加到域名解析中
acme.sh --issue --dns -d mydomain.com \
--yes-I-know-dns-manual-mode-enough-go-ahead-please
# 重新生成证书,这里使用renew来更新
acme.sh --renew -d mydomain.com \
--yes-I-know-dns-manual-mode-enough-go-ahead-please最后更新于