logfile
V2EX  ›  问与答

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

  •  
  •   logfile · Sep 20, 2017 · 2137 views
    This topic created in 3186 days ago, the information mentioned may be changed or developed.
    一台服务器,只有一个 IP 地址,同时绑定了 2 个不同的域名,a.com and b.com
    通过 git clone https://github.com/letsencrypt 下载 Let's Encrypt,运行 letsencrypt-auto,只能生成一个域名的证书,另外一个域名需要怎么操作才能生成另外一个证书?
    请各位指教。
    6 replies    2017-09-20 20:19:09 +08:00
    wombat
        1
    wombat  
       Sep 20, 2017   ❤️ 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
       Sep 20, 2017
    thanks u @blackshadow

    笨人用笨法,自己把原来的 apache2 conf 文件 a2dissite,启用 B.com 的 conf,再重新生成证书,再重新启用 A.COM 的 conf,也可以。
    Marfal
        3
    Marfal  
       Sep 20, 2017   ❤️ 1
    hgc81538
        4
    hgc81538  
       Sep 20, 2017
    certbot
    caryqy
        5
    caryqy  
       Sep 20, 2017
    cerbot
    caryqy
        6
    caryqy  
       Sep 20, 2017
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1342 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 17:19 · PVG 01:19 · LAX 10:19 · JFK 13:19
    ♥ Do have faith in what you're doing.