V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
logfile
V2EX  ›  问与答

请教下 Let's Encrypt 证书安装问题

  •  
  •   logfile · 2017-09-20 14:37:44 +08:00 · 1658 次点击
    这是一个创建于 2415 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一台服务器,只有一个 IP 地址,同时绑定了 2 个不同的域名,a.com and b.com
    通过 git clone https://github.com/letsencrypt 下载 Let's Encrypt,运行 letsencrypt-auto,只能生成一个域名的证书,另外一个域名需要怎么操作才能生成另外一个证书?
    请各位指教。
    6 条回复    2017-09-20 20:19:09 +08:00
    blackshadow
        1
    blackshadow  
       2017-09-20 14:48:08 +08:00   ❤️ 1
    ./letsencrypt-auto certonly --standalone --email [email protected] -d a.com -d www.a.com

    ./letsencrypt-auto certonly --standalone --email [email protected] -d b.com -d www.b.com

    这样就给 A,B 两个网站建好证书了
    logfile
        2
    logfile  
    OP
       2017-09-20 14:54:48 +08:00
    thanks u @blackshadow

    笨人用笨法,自己把原来的 apache2 conf 文件 a2dissite,启用 B.com 的 conf,再重新生成证书,再重新启用 A.COM 的 conf,也可以。
    Marfal
        3
    Marfal  
       2017-09-20 15:11:47 +08:00   ❤️ 1
    hgc81538
        4
    hgc81538  
       2017-09-20 15:40:52 +08:00
    certbot
    caryqy
        5
    caryqy  
       2017-09-20 20:18:29 +08:00
    cerbot
    caryqy
        6
    caryqy  
       2017-09-20 20:19:09 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1748 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:34 · PVG 08:34 · LAX 17:34 · JFK 20:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.