title: Unable to correct sudden "server certificate verification failed"
body: <p>I have the following problem:</p>
  <ul>
  <li><p>I have two machines here, a PC (Windows) and a Raspberry Pi (Raspbian).</p>
  </li>
  <li><p>I have a git repo on gitlab.com, using an https URL.</p>
  </li>
  <li><p>On the PC, I have been using and continue to use git (command line, git shell) with zero issues.</p>
  </li>
  <li><p>On the Pi, today I can no longer access the repo, <code>git pull origin master</code>, for example, fails with:</p>
  <pre><code>  server certificate verification failed
  </code></pre>
  <p>This is a new issue. I had been happily using git on that devices for months, and  nothing was touched on it since the last time I  used it successfully about a week or so ago (the device hasn't even been powered on since).</p>
  </li>
  </ul>
  <p>Not knowing much about SSL and certificates, I've just been hunting for solutions and blindly executing commands with no success. So far all I've found and tried is:</p>
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed">github: server certificate verification failed</a> - Seems the most promising. I went through the accepted answer there, updated ca-certificates on the device, manually installed the root certificates, and made sure git was using them, but the error persisted. The OP mentioned &quot;I just added the downloaded cacert.org CAs to my trusted.pem, and now git doesn't complain anymore&quot; but I do not understand how to do this.</p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/37444154/git-clone-fails-server-certificate-verification-failed">Git Clone Fails: Server Certificate Verification Failed</a> - The suggested solution here is simply to disable SSL verification, which I don't really understand since it's always worked up until now. Anyways I tried it and, for reasons I do not understand, after git prompted me for a username and password it said &quot;Basic Authentication Failed&quot;. I am 100% sure that I entered the correct username and password.</p>
  </li>
  <li><p><a href="https://forum.gitlab.com/t/cannot-clone-via-https-with-error-server-certificate-verification-failed/4782" rel="nofollow noreferrer">https://forum.gitlab.com/t/cannot-clone-via-https-with-error-server-certificate-verification-failed/4782</a> doesn't seem to apply as it is talking about the server side? My repo is hosted at gitlab.com, I don't run the server. In any case the solution there mentions something about adding a newline somewhere but I don't understand where or how that type of problem could suddenly have developed.</p>
  </li>
  <li><p><a href="https://ubuntuforums.org/showthread.php?t=1865952" rel="nofollow noreferrer">https://ubuntuforums.org/showthread.php?t=1865952</a> seems Ubuntu-specific and the solution doesn't seem related to my situation.</p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/41876091/sudden-server-certificate-verification-failure">sudden Server Certificate verification failure</a> also appears to be related to an in-house git server.</p>
  </li>
  <li><p><a href="https://chat.meta.stackexchange.com/transcript/message/5827765#5827765">Playing with my cat for 5 minutes and trying again</a> - This does not seem to be working.</p>
  </li>
  </ul>
  <p>It doesn't make sense to me that it would be a server screw-up on the GitLab side, given that my PC continues to access the repo just fine. I'm also not having any issues on their site, their <a href="https://twitter.com/gitlabstatus" rel="nofollow noreferrer">status Twitter feed</a> doesn't mention anything, and also it seems odd that they would screw this particular thing up (plus the problem has been going on all day now).</p>
  <p>I'm not sure what to try next. What's my next step here? It's a bit frustrating as it's frozen project development all day so far.</p>