V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cndns
V2EX  ›  SSL

关于 ssl 证书问题请教

  •  
  •   cndns · Mar 21, 2023 · 1836 views
    This topic created in 1141 days ago, the information mentioned may be changed or developed.

    各位 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 replies    2023-03-21 14:59:11 +08:00
    pubby
        1
    pubby  
       Mar 21, 2023 via iPhone
    fullchain
    mmc
        2
    mmc  
       Mar 21, 2023
    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"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    ♥ Do have faith in what you're doing.