GitLab Runner certificate signed by unknown authority

Recently I’ve been working w/ GitLab Runners, starting with Shell Executor before moving on to Docker.


Anyway, my GitLab instance uses a self-signed certificate. This is not great as our tooling essentially needs to work around errors like this:

ERROR: Registering runner... failed                 runner=EfnphyLc status=couldn't execute POST against Post x509: certificate signed by unknown authority
PANIC: Failed to register this runner. Perhaps you are having network problems


In your config.toml, introduce GIT_SSL_NO_VERIFY=true in your list of environment variables; e.g.,

concurrent = 1
check_interval = 0

  name = "f6705c062106"
  url = "FIXME"
  token = "FIXME"
  executor = "docker"
  environment = ["GIT_SSL_NO_VERIFY=true"]
    tls_verify = false
    image = "FIXME"
    privileged = false
    disable_cache = false
    volumes = ["/cache"]
    pull_policy = "if-not-present"
    shm_size = 0

NB: Not saying that this is a good practice, merely a workaround.