锦方的个人网页 · 如果有一天你突然想起了我


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

  1. upgrade Kali Linux
  2. Ubuntu MATE Raspberry Pi ssh开机自动启动
  3. 清理Linux系统中无用的软件包
  4. vim忘记sudo编辑无权编辑的文件保存
  5. 查看VPS服务器是否被扫描
  6. Linux把一个压缩包分割成多个
  7. 增加SSH连接远程vps的时间
  8. 修改nginx日志格式
  9. centos7使用certbot报python错误 (当前)
  10. Linux 文件上传/下载工具
  11. 小米路由器使用Shadowsocks
  12. 使用lynis扫描Linux的安全漏洞
  13. linux禁用独显
  14. Raspberry Pi 3 (1基本配置)
  15. 树莓派做轻web服务器
  16. 判断电子邮箱地址是否存在
  17. 找不到命令add-apt-repository

下一篇推荐

系列继续阅读

Linux 文件上传/下载工具