IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Certbot:自动部署 Let\'s Encrypt 证书

    toy发表于 2016-05-13 14:41:10
    love 0

    日前,电子前哨基金会(EFF)为 Let's Encrypt 推出了客户端 Certbot。通过 Certbot,你可以自动部署 Let's Encrypt 证书,以便为网站加上 HTTPS 支持。

    certbot

    安装

    sudo apt-get install letsencrypt -t jessie-backports # Debian 8
    sudo apt-get install letsencrypt                     # Debian testing/unstable, Ubuntu 16.04
    wget https://dl.eff.org/certbot-auto                 # CentOS/RHEL 7
    chmod a+x certbot-auto                               # CentOS/RHEL 7
    

    获得证书

    letsencrypt certonly  # Debian/Ubuntu
    certbot-auto certonly # CentOS/RHEL
    

    自动续期

    将下列命令加入 cron 即可:

    letsencrypt renew --quiet  # Debian/Ubuntu
    certbot-auto renew --quiet # CentOS/RHEL
    


沪ICP备19023445号-2号
友情链接