centos7使用certbot报python错误
目录
遇到centos7使用certbot报python错误后的安装方法
获取certbot客户端
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto停止nginxyunx
service nginx stop生成证书
./certbot-auto certonly --standalone --email `你的邮箱地址` -d `你的域名地址`
当前网站有多个域名时需在后面增加,例如
./certbot-auto certonly --standalone --email [email protected] -d xyt571.com -d www.xyt571.com查看生产的证书
tree /etc/letsencrypt/live/
将证书用于nginx在nginx网站配置文件中增加
###证书位置
ssl_certificate "/etc/letsencrypt/live/runou.me/fullchain.pem";
ssl_certificate_key "/etc/letsencrypt/live/runout.me/privkey.pem";启动nginx
service nginx start
https://runou.me/posts/2017/install-certificates/
系列:linux
该系列自动来自分类: linux
- upgrade Kali Linux
- Ubuntu MATE Raspberry Pi ssh开机自动启动
- 清理Linux系统中无用的软件包
- vim忘记sudo编辑无权编辑的文件保存
- 查看VPS服务器是否被扫描
- Linux把一个压缩包分割成多个
- 增加SSH连接远程vps的时间
- 修改nginx日志格式
- centos7使用certbot报python错误 (当前)
- Linux 文件上传/下载工具
- 小米路由器使用Shadowsocks
- 使用lynis扫描Linux的安全漏洞
- linux禁用独显
- Raspberry Pi 3 (1基本配置)
- 树莓派做轻web服务器
- 判断电子邮箱地址是否存在
- 找不到命令add-apt-repository