如何为Windows Gitlab运行器设置TLS证书?
我一直在尝试使用此文档我没有运气在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终使用此作为参考。
当您不托管自己的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 yourconfig.toml
.