查看“︁Certbot”︁的源代码
←
Certbot
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
certbot 是个自动签发 HTTPS 证书的 bot ==安装== <pre># pacman -S certbot # pacman -S certbot-nginx</pre> ==使用== 先检查 nginx 有没有错误,没有报错才可以运行<pre>$ nginx -t</pre>没有报错则继续<pre>$ certbot -d DOMAIN1 -d DOMAIN2 -m YOUR_EMAIL --nginx certonly</pre> ==位置== <pre>Certificate is saved at: /etc/letsencrypt/live/DOMAIN/fullchain.pem Key is saved at: /etc/letsencrypt/live/DOMAIN/privkey.pem</pre> ==自动更新== <pre># vim /etc/systemd/system/letsencrypt.service</pre><pre>[Unit] Description=Let's Encrypt renewal [Service] Type=oneshot ExecStart=/usr/bin/certbot renew --quiet --agree-tos ExecStartPost=/bin/systemctl reload nginx.service</pre><pre># vim /etc/systemd/system/letsencrypt.timer</pre><pre>[Unit] Description=Monthly renewal of Let's Encrypt's certificates [Timer] OnCalendar=daily Persistent=true [Install] WantedBy=timers.target</pre>开机自启<pre># systemctl enable letsencrypt.timer # systemctl start letsencrypt.timer</pre> [[分类:Server]]
返回
Certbot
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息