
LetsEncrypt免费证书是3个月的, 自动的续签不好使了, 就用着手动的当然了, 我的这个记录是有前提的.1. 环境: CentOS2. certbot安装完毕3. 使用nginx作为服务使用方法:./certbot-auto certonly --email you_emailqq.com --agree-tos --no-eff-email --webroot -w /data/wwwroot/webroot -d you.domain.com-------------------------------------------------------------------------------------------------------------------------------------------续签:第一种续签,到期后的续签: ./certbot-auto renew未到期续签: ./certbot-auto renew --force-renew-----------------------------------------------------------------------------------------执行完以上命令并成功的, 需要重启nginx服务: nginx -s stop nginx -c /usr/local/nginx/conf/nginx.conf需要交代一下:-w 是让你输入 当前域名对应的项目目录. 技巧: 就是nginx中server下 root 对应的项目目录--webroot : nginx开启状态,申请,-d 指定你的域名-------------------------------------------------------------------------------------------------------------------------------------在说下查询到期时间命令:./certbot-auto certificates