申请免费SSL证书

参考资料:

  1. https://www.cnblogs.com/sage-blog/p/10302934.html

上述文章中提到的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

image.png

需注意:生成的域名证书,需要能给在nginx中配置80端口,且能正常访问。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容