参考资料:
上述文章中提到的letsencrypt,本人未能找到正确开启方式。但是使用acme.sh正确打开申请方式。
官方文档:https://github.com/acmesh-official/acme.sh/wiki/How-to-install
1、DNS认证
下面的命令使用的Amazon Aws Route53 的DNS.
export AWS_ACCESS_KEY_ID=*****************
export AWS_SECRET_ACCESS_KEY=*****************
acme.sh --issue --dns dns_aws -d test.***.com --dnssleep 60
文档介绍:https://github.com/acmesh-official/acme.sh/wiki/dnsapi#10-use-amazon-route53-domain-api
2、Nginx认证方式
acme.sh --issue -d test..com --nginx /www/server/panel/vhost/nginx/test..conf
文档介绍:https://github.com/acmesh-official/acme.sh/wiki/How-to-issue-a-cert
需注意:生成的域名证书,需要能给在nginx中配置80端口,且能正常访问。