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
  • 友链
    • 维酷科技
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
2881  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
    181文章 17评论 4点赞 613311浏览
    随机文章
    访问aspx文件出现404错误
    15年前
    将网页转换成移动版
    15年前
    Linux/CentOS下怎么查看硬盘使用时间
    12年前
    CentOS干净系统需要的组件
    15年前
    CentOS配置VNCServer以及远程桌面连接
    12年前
    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
    181 文章 17 评论 613311 浏览
    测试
    测试