title: How to configure multible CA certs in git?
body: <p>I currently have a situation where I need a (self generated) RootCA.crt configured for our internal private gitlab installation.</p>
  
  <p>At the same time we still need "normal" access to github.com.</p>
  
  <p>Therefore I need both CA settings working at the same time.</p>
  
  <p>My <code>git config --global --edit</code> looks like this</p>
  
  <pre><code>[user]
          name = my name
          email = my email
  [core]
          autocrlf = false
          excludesfile = C:\\Users\\&lt;user&gt;\\Documents\\gitignore_global.txt
  [filter "lfs"]
          clean = git-lfs clean -- %f
          smudge = git-lfs smudge -- %f
          process = git-lfs filter-process
          required = true
  [mergetool "sourcetree"]
          cmd = 'C:/Program Files/KDiff3/kdiff3.exe' \"$BASE\" \"$LOCAL\" \"$REMOTE\" -o \"$MERGED\"
          trustExitCode = true
  [winUpdater]
          recentlySeenVersion = 2.17.0.windows.1
  [credential]
          helper = store
  [http "https://our.gitlab.server*"]
          sslVerify = true
          sslCAInfo = C:/ssl/RootCA.crt
          sslCAPath = C:/ssl
  [http "https://github.com*"]
          sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
          sslCAPath = C:/Program Files/Git/mingw64/ssl/certs
          sslVerify = true
  </code></pre>
  
  <p>So as you can see I configured the two http entries, one for our local server and one for github. (like shown in the <a href="https://git-scm.com/docs/git-config#EXAMPLES" rel="nofollow noreferrer">documentation</a>)</p>
  
  <p>If I am just setting one at a time like </p>
  
  <pre><code>[http]
       sslCAInfo = C:/ssl/RootCA.crt
       sslCAPath = C:/ssl/
       sslVerify  = true
  </code></pre>
  
  <p>the according repos work fine.</p>
  
  <p>But in the moment using the upper config it is always showing nothing:</p>
  
  <pre><code>$ git config --get-all http.sslCAInfo
  (nothing)
  </code></pre>
  
  <p><br>
  <strong>How can I get both configurations using different CA certs according to the repositories URL to work properly?</strong></p>