美文网首页安全Linux
申请免费SSL证书

申请免费SSL证书

作者: 漫画三毛 | 来源:发表于2022-03-30 19:28 被阅读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端口,且能正常访问。

    相关文章

      网友评论

        本文标题:申请免费SSL证书

        本文链接:https://www.haomeiwen.com/subject/mjewjrtx.html