title: Gitlab integration with Hashicorp Vault
body: <p>I have integrated my self hosted Gitlab with Hashicorp vault. I have followed the steps here <a href="https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/" rel="nofollow noreferrer">https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/</a> and tried to run the pipeline.</p>
  <p>I am receiving the certificate error while running the pipeline.</p>
  <pre><code>Error writing data to auth/jwt/login: Put &quot;https://vault.systems:8200/v1/auth/jwt/login&quot;: x509: certificate signed by unknown authority
  </code></pre>
  <p>My .gitlab yml file -</p>
  <pre><code>Vault Client:
    image:
      name: vault:latest
      entrypoint:
          - '/usr/bin/env'
          - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
    before_script:
  
    script:
      - export VAULT_ADDR=https:/vault.systems:8200/
      - export VAULT_TOKEN=&quot;$(vault write -field=token auth/jwt/login role=staging jwt=$CI_JOB_JWT)&quot;
      - export PASSWORD=&quot;$(vault kv get -field=password kv/project/staging/db)&quot;
      - echo $PASSWORD
  </code></pre>
  <p>If i use <code>-tls-skip-verify</code> flag then it works fine.</p>
  <p>Do i need to place the self signed server certificate somewhere on the vault server or gitlab server?
  Please let me know if anyone has any ideas on this one?</p>