Portable git with proxy: SSL certificate problem: unable to get local issuer certificate

Hello,

I know this question has been asked many times across the developer community, but I can’t get my git to run on my Windows computer.

On this computer, the internet will be accessed with a proxy server. I successfully configured that with http.proxy.
As I have no admin rights on this pc I wanted to use a portable version of git. So I am using cmder for my terminal and for git access now.

After configuring the proxy server I wanted to clone a private repo from gitlab.
But as soon as I want to clone it, the following error message appears and git exits the command:

fatal: unable to access ‘https://gitlab.com/averi/admin-panel.git/’: SSL certificate problem: unable to get local issuer certificate

I searched through a lot of topics on google and tried everything that seemed right. i.e. https://blogs.msdn.microsoft.com/phkelley/2014/01/20/adding-a-corporate-or-self-signed-certificate-authority-to-git-exes-store/.

I tried to copy the .cert from the /usr/ssl path, also from the mingw32 path, added the root certificate, as described in the link above, but nothing worked.

If it helps, here is my git config list:
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” core.symlinks=false
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” core.autocrlf=true
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” color.diff=auto
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” color.status=auto
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” color.branch=auto
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” color.interactive=true
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” pack.packsizelimit=2g
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” help.format=html
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” http.sslcainfo=C:/Users/q25kuen/ca-bundle.crt
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” diff.astextplain.textconv=astextplain
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” rebase.autosquash=true
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” filter.lfs.clean=git-lfs clean – %f
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” filter.lfs.smudge=git-lfs smudge – %f
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” filter.lfs.process=git-lfs filter-process
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” filter.lfs.required=true
file:“C:\Users\q25kuen\AppData\Local\Mozilla\dev\cmder\vendor\git-for-windows\mingw32/etc/gitconfig” credential.helper=manager
file:C:/Users/q25kuen/AppData/Local/Mozilla/dev/.gitconfig http.sslcainfo=C:/Users/q25kuen/ca-bundle.crt
file:C:/Users/q25kuen/AppData/Local/Mozilla/dev/.gitconfig http.https://gitlab.com/averi/.proxy=http://172.22.2.148:8080
file:C:/Users/q25kuen/AppData/Local/Mozilla/dev/.gitconfig http.https://gitlab.com/averi/.sslcainfo=C:/Users/q25kuen/ca-bundle.crt

Thanks for your help!

This topic contains notes to help in the certificate validation (focusing on Let’s Encrypt): Letsencrypt failing when I reconfigure - #4 by 0x4chm3d