使用letsencrypt生成免费https证书

邮箱用户_8st46
邮箱用户_8st46 2022年1月2日 23:38 发表

环境:
操作系统: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

点赞 0 收藏(0)    分享
相关标签: letsencrypt snap snapd
问题没解决?让chatGPT帮你作答 智能助手
0 个评论
  • 消灭零评论