certbot免费证书

yum install python-certbot-nginx

开启防火墙443端口

firewall-cmd --add-port=443/tcp --permanent

别忘了重启

firewall-cmd --reload

安装证书并更新:nginx certbot --nginx
  certbot --nginx certonly
certbot renew --dry-run
更新证书有效期:certbot renew 
原文地址:https://www.cnblogs.com/mkxzy/p/7091361.html