最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

SSL error when with git submodules on windows runner - Stack Overflow

programmeradmin1浏览0评论

When running a job with gitlab runner under Windows with selfhosted gitlab, I got the error:

fatal: unable to access 'https://gitlab/repo.git/': SSL peer certificate or SSH remote key was not OK

How can this be fixed?

When running a job with gitlab runner under Windows with selfhosted gitlab, I got the error:

fatal: unable to access 'https://gitlab/repo.git/': SSL peer certificate or SSH remote key was not OK

How can this be fixed?

Share Improve this question asked Feb 4 at 15:44 elsamukoelsamuko 6286 silver badges18 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

This error happens, when the git tries to download a submodule with curl and it cannot find the root certificate in its cert store. To find the location where curl searches for certificates, add

  variables:
    GIT_CURL_VERBOSE: "1"

to the job which fails into the gitlab-ci.yml.

You'll see output like:

09:06:48.181569 http.c:938              == Info:  CAfile: C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
09:06:48.181569 http.c:938              == Info:  CApath: none

In this case the certificate was added to C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt and the job runs now successfully.

发布评论

评论列表(0)

  1. 暂无评论