gitlabRunner-x509:证书由未知授权机构签名

时间:2019-12-17 15:25:35

标签: ssl gitlab gitlab-ci gitlab-ci-runner

好吧,我正在尝试在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

我仍然遇到该错误。有想法吗?

我也没有在服务器端进行任何更改。我不应该在那里做什么吗? (我没有找到任何提及,但仍在询问)

PS:gitlab-runner x509: certificate signed by unknown authority不能解决我的问题

1 个答案:

答案 0 :(得分:0)

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