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
2660  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点赞 554145浏览
    随机文章
    VMware下Debian正常使用Gnome3
    11年前
    用netstat和awk命令来统计网络连接数
    14年前
    使用Bind 9 的DNS-views实现IP地址分区域解析
    15年前
    Mac环境下解决SSH超时断开
    10年前
    通过ASP,PHP,JS,HTML实现301跳转
    15年前
    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 评论 554145 浏览
    测试
    测试