Let'sEncrypt 您所在的位置:网站首页 xbox开启自动续约并取得1个月免费 Let'sEncrypt

Let'sEncrypt

2023-08-08 18:27| 来源: 网络整理| 查看: 265

Let'sEncrypt免费证书是3个月的, 自动的续签不好使了, 就用着手动的

当然了,  我的这个记录是有前提的.

    1. 环境: CentOS

    2. certbot安装完毕

    3. 使用nginx作为服务

使用方法:

./certbot-auto certonly --email [email protected] --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



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有