V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cndns
V2EX  ›  SSL

关于 ssl 证书问题请教

  •  
  •   cndns · 2023-03-21 12:32:02 +08:00 · 884 次点击
    这是一个创建于 373 天前的主题,其中的信息可能已经有所发展或是发生改变。

    各位 v 友们中午好,我想请教个问题 就是我用 acme.sh 申请了一个域名 ssl 证书,但是是放哪个在 nginx 配置目录下呢?

    申请结果如下

    [Tue 21 Mar 2023 04:16:29 AM UTC] Your cert is in: /root/.acme.sh/example.com_ecc/example.com.cer
    [Tue 21 Mar 2023 04:16:29 AM UTC] Your cert key is in: /root/.acme.sh/example.com_ecc/example.com.key
    [Tue 21 Mar 2023 04:16:29 AM UTC] The intermediate CA cert is in: /root/.acme.sh/example.com_ecc/ca.cer
    [Tue 21 Mar 2023 04:16:29 AM UTC] And the full chain certs is there: /root/.acme.sh/example.com_ecc/fullchain.cer
    

    我疑惑的问题是 私钥文件是 example.com.key
    那证书文件是放 example.com.cer 还是 fullchain.cer 我看网上有些说是放自己域名的 .cer 有些是放 fullchain.cer 在 nginx 配置文件里 麻烦懂的 v 友能否解答下我这个知识点吗?

    2 条回复    2023-03-21 14:59:11 +08:00
    pubby
        1
    pubby  
       2023-03-21 12:34:37 +08:00 via iPhone
    fullchain
    mmc
        2
    mmc  
       2023-03-21 14:59:11 +08:00
    acme.sh --installcert -d example.com --key-file /etc/ssl/example.com.key --fullchain-file /etc/ssl/example.com.cer --reloadcmd "sudo service nginx force-reload"
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3486 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:53 · PVG 18:53 · LAX 03:53 · JFK 06:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.