https免费证书申请certbot,nginx

Posted ljwtiey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了https免费证书申请certbot,nginx相关的知识,希望对你有一定的参考价值。

官网:https://certbot.eff.org/

下载:

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto certonly  -d  *.xxxxx.com --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory

完成后存储路径:/etc/letsencrypt

配置nginx

ssl_certificate /etc/letsencrypt/live/xxx.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xxx.com/privkey.pem;

以上是关于https免费证书申请certbot,nginx的主要内容,如果未能解决你的问题,请参考以下文章