4

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.

1
  • the ssl certificate is in the Git directory. Commented Jan 26, 2016 at 15:34

1 Answer 1

4

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>
    
Sign up to request clarification or add additional context in comments.

3 Comments

raviolicode, did you mean for example my certificate is in Program Files. Then I will have to type sslCAinfo = C:/ProgramFiles/certificate.crt . And then git config --global http.sslCAinfo C:/Program Files/certificate.crt . Is that correct???
@Octtavius only one of the above is needed. For example: git config --global http.sslCAinfo <path to your key> will add the configuration to your ~/.gitconfig, so there's no need to add that line to the gitconfig file.
Thanks a lot for detailed explanation !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.