<p>let's encrypt有两个常见的客户端可签发
certbot和acme.sh
certbot过于臃肿
本文用acme.sh</p>
<p>acme.sh安装过程省略
参考地址:<a href="https://blog.csdn.net/gitblog_00033/article/details/152351334">https://blog.csdn.net/gitblog_00033/article/details/152351334</a></p>
<p>获取签证</p>
<pre><code>acme.sh --issue --nginx -d drivod.top --server letsencrypt</code></pre>
<p>安装证书到指定目录,以及自动续期重启ng的命令</p>
<pre><code>acme.sh --install-cert -d drivod.top --key-file /etc/nginx/ssl/drivod.top/private.key --fullchain-file /etc/nginx/ssl/drivod.top/fullchain.crt --reloadcmd "systemctl reload nginx"
</code></pre>
<p>强制更新证书</p>
<pre><code>acme.sh --renew -d drivod.top --nginx --force</code></pre>
<p>查看当前管理的证书</p>
<pre><code>acme.sh list</code></pre>
<p>以及定时任务</p>
<pre><code>crontab -e</code></pre>
let's encrypt有两个常见的客户端可签发
certbot和acme.sh
certbot过于臃肿
本文用acme.sh
acme.sh安装过程省略
参考地址:https://blog.csdn.net/gitblog_00033/article/details/152351334
获取签证
acme.sh --issue --nginx -d drivod.top --server letsencrypt
安装证书到指定目录,以及自动续期重启ng的命令
acme.sh --install-cert -d drivod.top --key-file /etc/nginx/ssl/drivod.top/private.key --fullchain-file /etc/nginx/ssl/drivod.top/fullchain.crt --reloadcmd "systemctl reload nginx"
强制更新证书
acme.sh --renew -d drivod.top --nginx --force
查看当前管理的证书
acme.sh list
以及定时任务
crontab -e
评论(0)
暂无评论