运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

使用letsencrypt生成免费https证书

运维开发网 https://www.qedev.com 2020-12-18 13:33 出处:51CTO 作者:redcock
使用letsencrypt生成免费https证书

环境:

操作系统: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
ln -s /snap/bin/certbot /usr/bin/certbot
certbot --nginx

生成证书:

certbot --nginx --email [email protected] -d  www.yourdomain.com
certbot --nginx --register-unsafely-without-email d-h5gateway.lingluex.com

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号