ssl - 错误:上传工件 - x509:证书由未知机构签名
问题描述
我试图注册一个共享运行器--tls-ca-file
,用于添加我的自签名证书,它注册得很好,但是在上传工件时它在工作期间失败。我只有一个跑步者,并重新注册了它,但我仍然有同样的错误。
ERROR: Uploading artifacts as "archive" to coordinator... error
error=couldn't execute POST against https://gitlab.me.local/api/v4/jobs/92336/artifacts?artifact_format=zip&artifact_type=archive&expire_in=1+month: Post https://gitlab.me.local/api/v4/jobs/92336/artifacts?artifact_format=zip&artifact_type=archive&expire_in=1+month:
x509: certificate signed by unknown authority
id=92336 token=*****
WARNING: Retrying... context=artifacts-uploader error=invalid argument
以下是跑步者的配置:
[[runners]]
name = "myrunner"
url = "https://gitlab.me.local/"
token = "****************"
tls-ca-file = "/etc/gitlab-runner/certs/ca.crt"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "python:2.7"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[root@runner gitlab-runner]# tree /etc/gitlab-runner/
/etc/gitlab-runner/
|-- certs
| |-- ca.crt
| `-- gitlab.me.local.crt
|-- config.toml
`-- config.toml.lock
这里有什么问题?
解决方案
推荐阅读
- swift - Swift 禁用导航控制器按钮直到 viewDidLoad 完成
- c++ - 读取我订阅的新频道消息的简单电报客户端?
- html - 验证渲染页面前端结构的工具
- c++ - 使用索引坐标 (x,y,z) 和一侧的大小创建一个正方形
- typescript - TypeScript 错误:“(属性)没有初始化程序,并且没有在构造函数中明确分配”当使用联合时
- css - html / css:水平和垂直居中的弹出表单并模糊整个背景
- sql - 将信息列表与其他列表 SQL 进行比较
- swift - 如何防止表格视图中的单元格被移动
- sas - SAS PROC IMPORT Multiple SAV Files - 强制 SPSS 值标签创建唯一的 SAS 格式名称
- bbc-microbit - micro:bit 和 /dev/ttyACM* 在 GNU/Linux 系统上