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
2681  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点赞 561262浏览
    随机文章
    卸载阿里云盾(安骑士)监控&屏蔽云盾IP
    5年前
    CentOS单网卡绑定多个IP
    15年前
    Sublime Text
    13年前
    硬盘再次悲剧
    14年前
    Mac连接安卓手机导入数据
    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 评论 561262 浏览
    测试
    测试