How do I fix the `SSL certificate problem: self signed certificate in certificate chain` error when using Git?

After upgrading to IntelliJ IDEA 2019.2, I started encountering the following error when trying to pull from my Git repository:

Git Pull Failed: unable to access 'https://github.xxx.com/app-Hello-USD/DGS.git/': SSL certificate problem: self signed certificate in certificate chain

It seems that the SSL certificate for my Git server is self-signed, and Git is rejecting it.

I’m looking for advice on what options or configurations I can use to resolve this issue. How can I either make Git trust the self-signed certificate or bypass this error safely?

What’s the recommended way to handle **ssl certificate problem: self signed certificate in certificate chain in a development environment without compromising security?

Quick local fix (dev only!) is to disable SSL verification:

git config --global http.sslVerify false

Be careful: this is insecure and shouldn’t be used in production.

Better approach: add your self-signed certificate to Git’s trusted store:

git config --global http.sslCAInfo /path/to/cert.pem

This way Git can trust your server without disabling SSL entirely.

I also used environment variables for some IDEs:

export GIT_SSL_NO_VERIFY=true

Again, only for temporary local testing, not for shared code or production.