安全Linux

申请免费SSL证书

2022-03-30  本文已影响0人  漫画三毛

参考资料:

  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端口,且能正常访问。

上一篇下一篇

猜你喜欢

热点阅读