OSX Yosemite Self Signed Certificates
Hi,
I have a Gitlab CI running over https with self signed certificates (on Ubuntu with Omnibus package). I have managed to install and use the gitlab-ci-multi-runner on different Windows an Linux (Ubuntu) machines (virtualbox machines) by installing the certificates as trusted in both OSs. But when trying to register a runner from OSX I am struggling with the certificates. I am getting this error:
$ gitlab-ci-multi-runner register
Please enter the gitlab-ci coordinator URL (e.g. http://gitlab-ci.org:3000/):
https://whateverurl:3000
Please enter the gitlab-ci token for this runner:
whatevetoken
Please enter the gitlab-ci description for this runner:
whateverdescription
ERRO[0014] Couldn't execute POST against https://ci.gmrv.es:3000/api/v1/runners/register.json: Post https://ci.gmrv.es:3000/api/v1/runners/register.json: x509: certificate signed by unknown authority
ERRO[0014] 4234234 Registering runner... failed
FATA[0014] Failed to register this runner. Perhaps you are having network problems
I have tried everything I could think of. I installed the certificates in the Keychain, which made the GUI apps (like the browser) accept the self signed certificates but still not working with the multi runner. I have tried to create a ca.crt with the certificates in the typical paths (for example in /System/Library/OpenSSL/certs) without luck.
I also tried to use dtruss to follow the possible paths that the multi runner is querying for loading the ca.crt (or some other similar file) but in this case I encounter this error, which I haven't been able to find a solution on the web:
$ sudo dtruss gitlab-ci-multi-runner register 2>&1 (closed) | head fatal error: runtime: bsdthread_register error
Any help would be appreciated.
Thanks! Pablo