logfile
V2EX  ›  问与答

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

  •  
  •   logfile · Sep 20, 2017 · 2417 views
    This topic created in 3359 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
    wombat
    Sep 20, 2017❤️1
    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
    logfile
    OP
    Sep 20, 2017
    2
    thanks u @blackshadow

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