3

I'm trying to push my first project in gitLab but i get this error "fatal: unable to access 'https://.git. : SSL certificate problem: unable to get local issuer certificate"

torek
  • 448,244
  • 59
  • 642
  • 775
fatandaz
  • 117
  • 1
  • 1
  • 6
  • `https://.git.` seems like an invalid path. Please show us what the remote URL is and how you're trying to push it. – M. Eriksson Jul 07 '21 at 10:24
  • hi @Magnus Eriksson, due to the privacy policies I cannot put the name of the company, the only that you should know is that the url could be `https://git.companyName.com` – fatandaz Jul 07 '21 at 12:09

2 Answers2

4

finally i find the solution here https://newbedev.com/invalid-ssl-certificate-when-pushing-to-git-server

After reading and making the settings, you should do

git config --system http.sslCAInfo "C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt"

and in the root of your project that you are uploading to gitLab you should do

git config http.sslCAInfo "C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt"

serge
  • 13,940
  • 35
  • 121
  • 205
fatandaz
  • 117
  • 1
  • 1
  • 6
  • 1
    That link doesn't seem to be working. Could you please specify what settings were you refering to? – m e Feb 08 '22 at 14:02
  • Downloading crt bundle and using the second command worked for me. I was trying to upload an unrelated repo into a blank personal gitlab instance. – Andacious Apr 06 '22 at 03:25
1

I also experienced this issue and our dev team recommended running below command :

git config --global http.sslbackend schannel

In visual studio, select git , then again select open in command prompt , see below attachment :

enter image description here

paste the command as suggested above , after that you should be able to perform whatever you were trying to do on git