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"
Asked
Active
Viewed 1.8k times
3
-
`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 Answers
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"
-
1That 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 :
paste the command as suggested above , after that you should be able to perform whatever you were trying to do on git

Secluded Spaces
- 11
- 1