ssl certificate problem
Summary
Gitlab runner can't clone repository from server with error "fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@xxx/rekby/asd.git/': SSL certificate problem: self signed certificate"
Steps to reproduce
- Install clean ubuntu 18.04 server from netboot install. In additional packages - ssh server only.
- Install gitlab runner: curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
- Install docker: apt install docker.io
- gitlab-runner register, then enter url and token of my server
- Run pipeline
Actual behavior
Then when runner try to clone repository it has error:
Cloning into '/builds/rekby/asd'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@xxx/rekby/asd.git/': SSL certificate problem: self signed certificate
But my server has good certificate from lets encrypt, not self signed.
Expected behavior
Clone repo and run script.
Relevant logs and/or screenshots
Running with gitlab-runner 10.8.0 (079aad9e)
on lev-one b06d1cc3
Using Docker executor with image golang:1.10 ...
Pulling docker image golang:1.10 ...
Using docker image sha256:52057de6c8d0d0143dfc71fde55e58edaf3ccc5c2212221a614f45283c5ab063 for golang:1.10 ...
Running on runner-b06d1cc3-project-10-concurrent-0 via lev...
Cloning repository...
Cloning into '/builds/rekby/asd'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@xxx/rekby/asd.git/': SSL certificate problem: self signed certificate
ERROR: Job failed: exit code 1
Environment description
I use own gitlab omnibus last version. It has many other gitlab-runners on windows and linux - they work ok. I try to install new runner on separate server.
Used GitLab Runner version
Version: 10.8.0
Git revision: 079aad9e
Git branch:
GO version: go1.8.7
Built: 2018-05-22T03:24:56+00:00
OS/Arch: linux/amd64
P.S.
I can curl https://my-server/ and git clone from server with runner without errors.
Edited by rekby