如何为Windows Gitlab运行器设置TLS证书?

发布于 2025-02-13 07:52:11 字数 369 浏览 1 评论 0原文

我一直在尝试使用此文档我没有运气在Windows上设置GitLab运营商。它正确轮询了作业,但是当它试图拉动工件时,它会返回x509:由未知权威签署的证书错误。

任何人都可以介绍如何生成适当的证书并将其附加到Windows Gitlab-runner上以使事情变得正常工作吗?

我尝试使用openssl生成证书,并设置-tls-ca-file标志,但到目前为止,它没有帮助。

I've been trying to use this documentation as guide but I am having no luck setting up a gitlab-runner on Windows. It correctly polls for jobs but when it tries to pull artifacts, it returns a x509: certificate signed by unknown authority error.

Can anyone step through how to generate the proper certificate and attach it to the Windows gitlab-runner in order to get things to work?

I've tried generating certificates using openssl and setting the --tls-ca-file flag but so far, it hasn't helped.

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

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

发布评论

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

评论(1

べ映画 2025-02-20 07:52:12

我最终使用作为参考。

当您不托管自己的gitlab服务器时,基本想法是从gitlab.com获取证书。从浏览器中,单击https://gitlab.com url旁边的小锁符号,然后下载证书。从Safari中,它只是将小证书图像拖到您的桌面上。

拥有证书后,将其存储在gitlab-runner文件夹中,然后在config.toml中使用tls-ca-file参数引用它。

I got this working finally using this as a reference.

The basic idea, when you're not hosting your own gitlab server, is to pull the certificate from gitlab.com. From your browser, click on the little lock symbol next to the https://gitlab.com URL and download the certificate. From Safari, it's just dragging the little certificate image over to your Desktop.

Once you have the cert, store it in your Gitlab-Runner folder and reference it with the tls-ca-file parameter in your config.toml.

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