使用Let's Encrypt配置nginx证书

xkrivzooh2018年12月27日
小于 1 分钟

使用Let's Encrypt配置nginx证书

Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates

主要参考:https://certbot.eff.org/lets-encrypt/centosrhel7-nginxopen in new window

操作起来很简单,主要用到了下面的命令:

sudo yum install nginx
sudo certbot --nginx
sudo certbot renew --dry-run
0 0 1 * * certbot renew --post-hook "/usr/sbin/nginx -s reload"
上次编辑于: 2022/9/13 17:40:58
Loading...