欢迎光临
我们一直在努力

免费HTTPS证书Certbot

为了加快推广 https 的普及, EEF 电子前哨基金会、 Mozilla 基金会和美国密歇根大学成立了一个公益组织叫 ISRG ( Internet Security Research Group ),这个组织从 2015 年开始推出了 Let’s Encrypt 免费证书。

安装与配置:

1、获取certbot-auto

<span class="nb js-evernote-checked" data-evernote-id="234">wget </span><span class="n">https</span><span class="err js-evernote-checked" data-evernote-id="232">:</span><span class="p">//</span><span class="n">dl</span><span class="p">.</span><span class="n">eff</span><span class="p">.</span><span class="n">org</span><span class="p">/</span><span class="n">certbot-auto</span>
<span class="n">chmod</span> <span class="n">a</span><span class="p">+</span><span class="n">x</span> <span class="p">./</span><span class="n">certbot-auto</span>
<span class="p">./</span><span class="n">certbot-auto</span> <span class="p">-</span><span class="n">-help</span>

2、生成证书

<span class="p">./</span><span class="n">certbot-auto</span> <span class="p">-</span><span class="n">-server</span>
<span class="n">https</span><span class="err js-evernote-checked" data-evernote-id="233">:</span><span class="p">//</span><span class="n">acme-v02</span><span class="p">.</span><span class="n">api</span><span class="p">.</span><span class="n">letsencrypt</span><span class="p">.</span><span class="n">org</span><span class="p">/</span><span class="n">directory</span> <span class="n">-d</span> <span class="s2 js-evernote-checked" data-evernote-id="235">"chennick.wang"</span> <span class="n">-d</span> <span class="s2 js-evernote-checked" data-evernote-id="236">"*.chennick.wang"</span>
<span class="p">-</span><span class="n">-manual</span> <span class="p">-</span><span class="n">-preferred-challenges</span> <span class="n">dns</span><span class="p">-</span><span class="n">01</span> <span class="n">certonly</span>

续签,使用命令行:

./certbot-auto renew
# 如果提示未到期,cert not due for renewal,可以强制更新如下
./certbot-auto renew --force-renew
# 看到success表示成功了
赞(0)
未经允许不得转载:798VPS » 免费HTTPS证书Certbot
分享到: 更多 (0)