gpt4 book ai didi

git - 放置 ssl 证书的标准做法

转载 作者:太空宇宙 更新时间:2023-11-03 14:09:08 25 4
gpt4 key购买 nike

目前我将 ssl 证书放在包含 https 服务器代码的同一个 repo 中。

虽然这样做似乎是错误的,但如果我不这样做,我将来如何管理负载平衡/自动缩放?

是否有执行此操作的标准做法?

最佳答案

Currently I put the ssl certificates in the same repo that contains the https server code.

只要您不将您的私钥(用于生成/签署证书)存储在同一个存储库中,就没有问题。

Is there a standard practice for doing this?The answer will be opinined-based since there isn't such a rule or a based practice how to do it.

您需要记住,每个服务器上都需要证书,因此将其放在存储库中是有意义的,因为它是公开内容,但如果您还需要 key - 那就另当别论了。

它们应该保存在一个单独的位置(也可以是 repo)。


证书使用的 key stash 在哪里?

只要它在安全的地方,就由你决定把它放在哪里。

关于git - 放置 ssl 证书的标准做法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34849022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com