Gitlab的哪个交换证书?
我必须将哪个证书添加到我的(Docker)Gitlab-Server,以便我可以发邮件吗? 或者我是否已经制作了自签名证书?
gitlab_rails['smtp_ca_file'] = '/path/to/your/cacert.pem'
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在误解此设置的目的。
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.