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
    • 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
2104  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
    177文章 23评论 4点赞 414564浏览
    随机文章
    Mac连接安卓手机导入数据
    4年前
    CentOS7升级内核开启BBR加速网络
    2年前
    iptables仅允许指定IP访问端口
    3年前
    CentOS删除文件/bin/rm: argument list too long错误处理
    4年前
    Linux下压缩与解压.zip和.rar及.7z文件
    13年前
    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 © 2023
    Designed by hankin
    主页
    页面
    • About
    博主
    ProdigYu 管理员
    Something about myself
    177 文章 23 评论 414564 浏览
    测试
    测试