Abh*_*ane 7 openssl certificate gitlab gitlab-ci-runner
我正在尝试按照以下步骤在 gitlab 上注册一个新的跑步者:https ://docs.gitlab.com/runner/register/index.html
但是当我输入 url、token 和 tags 时。弹出一条错误消息说:
错误:注册跑步者...失败的跑步者=CS-XXX 状态=无法针对https://example.com/api/v4/runners执行 POST :发布https://example.com/api/v4/runners: x509:由未知机构签署的证书
我正在新服务器上工作并且已经安装了 gitlab-runner
您需要tls-ca-file
在注册期间或在跑步者的配置中使用选项。
以下是使用option的非交互式注册示例tls-ca-file
:
gitlab-runner register \
--non-interactive \
--registration-token YOUTOKEN \
--url https://example.com/ \
--tls-ca-file /path/to/your/ca.crt
Run Code Online (Sandbox Code Playgroud)
另一种方式,你可以参考的tls-ca-file
选项,你的config.toml
下[[runners]]
部分
更多信息:https : //docs.gitlab.com/runner/configuration/tls-self-signed.html
归档时间: |
|
查看次数: |
13090 次 |
最近记录: |