环境:
操作系统:ubuntu 18.04
letsencrypt下载地址: https://github.com/letsencrypt/letsencrypt.git
nginx:nginx/1.14.0 (Ubuntu)
早期直接使用 ./letsencrypt-auto 命令可以生成,现在已经不行了,会提示
Skipping bootstrap because certbot-auto is deprecated on this system.
Your system is not supported by certbot-auto anymore.
Certbot cannot be installed.
Please visit https://certbot.eff.org/ to check for other alternatives.
原因需要安装 snap
操作过程(具体先不注释了):
详见请参考: https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx
apt update
apt install snapd -y
ln -s /snap/bin/certbot /usr/bin/certbot
apt install certbot -y
certbot --nginx
生成证书:
certbot --nginx --email hello@youdomain.com -d www.yourdomain.com
certbot --nginx --register-unsafely-without-email d-h5gateway.lingluex.com