Apparently, sometimes certificate files change, so you need to save a set of several, not just one! Moreover, I recommend trying and maintaining a secure connection rather than disconnecting it:
git config --system http.sslVerify false
Or worse:
git config --global http.sslVerify false
This is a very bad practice and should be avoided for all reasons.
So, first find this package certificate file. On Windows, it is under the git installation directory, for example:
D: \ Program Files \ Git \ mingw64 \ ssl \ certs \ ca-bundle.crt
On Linux, you can try something like this (I did not):
$ curl-config --ca **/etc/ssl/certs/ca-certificates.crt**
or maybe this is another place:
**/etc/ca-certificates/extracted/ca-bundle.trust.crt**
No matter where it is possible, or the operating system you use when you receive this certificate file, you need to tell git to configure this certificate. You can modify the git.config file for several reasons, but one direct way:
git config --system http.sslcainfo /bin/curl-ca-bundle.crt
Hope this helps. There is another discussion for more information. Please let me know if this helps.
source share