Gitlab的哪个交换证书?

发布于 2025-01-20 18:06:04 字数 253 浏览 3 评论 0原文

Exchange-Certificates

我必须将哪个证书添加到我的(Docker)Gitlab-Server,以便我可以发邮件吗? 或者我是否已经制作了自签名证书?

gitlab_rails['smtp_ca_file'] = '/path/to/your/cacert.pem'

Exchange-Certificates

Which certificate do I have to add to my (Docker) Gitlab-Server so I can send mails?
Or do I have make a self-signed-certificate?

gitlab_rails['smtp_ca_file'] = '/path/to/your/cacert.pem'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南渊 2025-01-27 18:06:04

我认为您正在误解此设置的目的。 gitlab_rails ['smtp_ca_file']用于帮助确保GitLab正确信任您的您的 SMTP服务器(Gitlab/Omnibus不提供该服务器!)。例如,在您可能拥有SMTP服务器的情况下,这是必要的,该情况使用(可能是自签名的)证书,该证书在众所周知/可信赖的CA中不受信任。

在这种情况下,生成证书是没有意义的 - 另一个实体(例如您的公司邮件服务器或公司证书管理局(CA))应向您提供证书。请参阅此问题有关如何使用openssl找到所需证书的详细信息命令(如果您无法直接从服务器配置中检索或从其他来源获取)。

如果您的邮件服务器使用众所周知/受信任的CA签发的证书,则不需要此设置。

I think you're misunderstanding the purpose of this setting. gitlab_rails['smtp_ca_file'] is used to help ensure that GitLab properly trusts your SMTP server (which is not provided by GitLab/Omnibus!). This is necessary, for example, in a situation where you may have a SMTP server which utilizes a (potentially self-signed) certificate that is not otherwise trusted under a well-known/trusted CA.

In this context, it would not make sense to generate a certificate -- the certificate should be provided to you by another entity, such as your company mail server or a company Certificate Authority (CA). See this question for details on how you can find the certificate you need using the openssl command (if you can't retrieve it directly from your server configuration or otherwise get it from some other source).

If your mail server uses a certificate issued by a well-known/trusted CA, this setting is not needed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文