Octtavius
Octtavius

Reputation: 591

How to Fix SSL certificate error when want to push to GitHub using git bash?

I am trying to push to GitHub a simple web application using git bash on Windows 8. But when i do git push origin master it says "fatal: unable to access 'https://********.com/****/******.git/': SSL certificate problem: unable to get local issuer certificate".

Could someone help me with this issue, without disabling the SSL.

Upvotes: 4

Views: 8404

Answers (1)

raviolicode
raviolicode

Reputation: 2175

You can fix the error by giving your SSL certificate. You can do this by either:

  • Editing your Git config file (in Linux ~/.gitconfig) and add:

    [http]
        sslCAinfo = <path to your key>
    
  • Executing the following command:

    git config --global http.sslCAinfo <path to your key>
    

Upvotes: 4

Related Questions