acme.sh 安装证书使用解决Java证书无法验证问题
acme.sh v3 换了ssl的证书签发机构,需要先注册一个邮箱
acme.sh 注册邮箱
acme.sh --register-account -m xxx@qq.com --server zerossl
acme.sh证书签发
acme.sh --issue --dns dns_ali -d *.exmple.com
提示:
如果需要用Let's的,可以通过命令来指定
acme.sh --set-default-ca --server letsencrypt --issue --dns dns_ali -d *.exmple.com
acme.sh 证书安装
acme.sh --install-cert -d $domain_name \
--fullchain-file /acme.sh/issue/$domain_name.cert.pem \
--key-file /acme.sh/issue/$domain_name.key.pem
提示:
这里需要注意的是证书文件,请使用 --fullchain-file 不要用--cert-file,cert-file https网站没问题,但是提供接口后由于没有中间证书,根证书 程序无法验证,导致一堆的https问题,所以直接使用--fullchain-file靠谱
https://www.leftso.com/article/1081.html