gpt4 book ai didi

openssl - gitlab-runner x509 : certificate signed by unknown authority

转载 作者:行者123 更新时间:2023-12-01 17:23:39 25 4
gpt4 key购买 nike

我正在尝试按照以下步骤在 gitlab 上注册一个新的运行程序: https://docs.gitlab.com/runner/register/index.html

但是当我输入网址、 token 和标签时,会弹出一条错误消息:

ERROR: Registering runner... failed runner=CS-XXX status=couldn't execute POST against https://example.com/api/v4/runners: Post https://example.com/api/v4/runners: x509: certificate signed by unknown authority

我正在开发一台新服务器,并且已经安装了 gitlab-runner。

最佳答案

您需要在注册或配置运行程序时使用tls-ca-file选项。

这里是 non-interactive 的示例使用 tls-ca-file 选项注册:

gitlab-runner register \
--non-interactive \
--registration-token YOUTOKEN \
--url https://example.com/ \
--tls-ca-file /path/to/your/ca.crt

其他方式,您可以 refer [[runners]] 部分下 config.toml 中的 tls-ca-file 选项

更多信息:https://docs.gitlab.com/runner/configuration/tls-self-signed.html

关于openssl - gitlab-runner x509 : certificate signed by unknown authority,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55622960/

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