获得免费 SSL 证书

并不只是 HTTPS 需要证书, 例如 Anyconnect 也需要证书, 那么怎么拿呢?

以前我在用 StartSSL, 但目前 StartCOM 有些问题, 所以来用 Let’s Encrypt 吧.

首先 clone 下来.

git clone https://github.com/certbot/certbot
cd certbot

然后请关闭你的 CDN 和正在运行的服务器(Standalone 的更简单些), 获取证书.

./letsencrypt-auto certonly -d example.com --force-renew -i None

请将 example.com 替换为你的域名, 然后在 /etc/letsencrypt/live/example.com 里面就有你需要的证书了.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.