gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 22:35:27 26 4
gpt4 key购买 nike

好吧,我正在尝试在我的 PC 上运行 gitlab-runner,它应该连接到我们服务器上的 Gitlab。

我得到了

ERROR: Registering runner... failed                 runner=XXXXXX status=couldn't execute POST against https://XXXXXXXXXX/api/v4/runners: Post https://XXXXXXXXXX/api/v4/runners: x509: certificate signed by unknown authority
PANIC: Failed to register this runner. Perhaps you are having network problems

我浏览了不同的建议,但没有真正改变。

我当前的设置是由

生成的自签名证书
wget "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt" -O "/Users/admin/gitlab-runner-certs/fs-tul-letsencrypt.pem"

(我也试过 https://futurestud.io/tutorials/how-to-run-gitlab-with-self-signed-ssl-certificate ),

gitlab-runner 注册脚本

#!/usr/bin/env bash

# tried also without sudo
sudo gitlab-runner register \
--non-interactive \
--registration-token OUR_GITLAB_TOKEN \
--url OUR_GITLAB_HOST_URL \
--tls-ca-file /Users/admin/gitlab-runner-certs/fs-tul-letsencrypt.pem \
--executor docker

而且我仍然收到该错误。有什么想法吗?

我也没有改变服务器端的任何东西。我不应该在那里做任何事情吗? (我没有找到关于它的任何提及,但仍在询问)

附言:gitlab-runner x509: certificate signed by unknown authority没有解决我的问题

最佳答案

运行 gitlab 的服务器端出现问题。全链证书路径错误

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

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