User-Profile-Image
hankin
  • 5
  • 首页
  • 分类
    • Windows
    • Web
    • VoIP
    • Virtualization
    • Trading
    • Smart Home
    • SEO
    • Security
    • Python
    • Program
    • PHP
    • OSX
    • OS
    • OpenSource
    • Nginx
    • MySQL
    • Mood
    • Linux
    • Life
    • Injection
    • Hosting
    • Finance
    • Exploits
    • CDN
  • 页面
    • About
  • 友链
    • 维酷科技
    • Tesra超算网络
Help?

Please contact us on our email for need any support

Support
  • 首页
    首页   ›   OS   ›   Linux   ›   正文
Linux

Let’s Encrypt免费SSL证书安装配置 for lnmp一键

2016-09-24 04:39:30
2661  0 0

安装方法:

如果是CentOS 6,先执行:yum install epel-release

cd /root/
wget https://dl.eff.org/certbot-auto –no-check-certificate
chmod +x ./certbot-auto

运行自动安装所需依赖包
./certbot-auto

单域名生成证书:

./certbot-auto certonly –email hi@prodigyu.com –agree-tos –webroot -w /home/wwwroot/prodigyu.com -d prodigyu.com

多域名单目录生成单证书:(即一个网站多个域名使用同一个证书)

./certbot-auto certonly –email hi@prodigyu.com –agree-tos –webroot -w /home/wwwroot/prodigyu.com -d prodigyu.com -d bbs.prodigyu.com

多域名多目录生成多个证书:(即一次生成多个域名的多个证书)

./certbot-auto certonly –email hi@prodigyu.com –agree-tos –webroot -w /home/wwwroot/prodigyu.com -d prodigyu.com -d bbs.prodigyu.com -w /home/wwwroot/lnmp.org -d www.lnmp.org -d lnmp.org

成功后生成的证书会存在:/etc/letsencrypt/live/prodigyu.com/ 目录下

Let’s Encrypt免费SSL证书有效期为90天所以需要设置自动续期

./certbot-auto renew –dry-run
将以下命令加入cron
./certbot-auto renew –quiet –no-self-upgrade

评论 (0)

Click here to cancel reply.

欢迎您 游客  

    ProdigYu
    180文章 77评论 4点赞 554256浏览
    随机文章
    Haproxy与iptables端口转发加速
    9年前
    Debian,CentOS临时更改网卡MTU值
    2年前
    CentOS安装iftop查看网络流量
    14年前
    外汇市场交易时间一览
    5年前
    实用的命令行终端快捷键
    5年前
    Tags
    Apache CentOS CMD DDOS Debian DNS Docker FastCGI Google IIS IP iptables Linux Mac MySQL Nginx Opensource PHP Python Skill SSH Ubuntu Vim VMware VPN web.py Windows 删除 命令 命令提示符 安装 开源 技巧 插件 漏洞 百度 系统 组件 终端 缓存 网络电话 脚本 自建 详解 错误
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Copyright © 2025
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    180 文章 77 评论 554256 浏览
    测试
    测试