Installation of certificate in GIT

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש

לעברית לחצו כאן

To switch from edit view to read view

To search in the Wiki


Home page > Security certificate > Installation of certificate in GIT ‎‎

Update: as of 3 May 2019, a new certificate installation software was released, the new software automatically installs the certificate also in GIT[1].

Run the command detailed below, depending on the location of the security certificate repository file that exists on your computer, and depending on the operating system your computer is running.


On Windows: If you have installed the security certificate installation software, then file can be found at the following location: "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"

Accordingly you would run this command:

git config --global http.sslCAInfo "C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"

Additionally, on windows you also need to run

git config --global http.sslbackend openssl

On MAC or any other scenario: Download the following file Curl-ca-bundle.zip and extract its contents, save to a location, then write a command to take it from that location.

pay attention! Change the path path/to/netfree-ca-bundle-curl.crt/ so that it points to the location of the file you saved on your computer in the previous step.

To cancel run the following command:

git config --global --unset http.sslCAInfo 

Credit: http://stackoverflow.com/a/16543283



You can run the following file to tell git to trust all of the certificates that already exist on the computer: WinCertsToPem.zip.



Another option, disable the SSL requirement in git, this will eliminat the need for a security certificate (this option is not recommended).

To do this, run the following command:


 git config --global http.sslVerify "false"

If you want to cancel the operation, run:

 git config --global --unset http.sslVerify 

SourceTree

When working with SourceTree software (GIT Graphic Client, link), You can also specify in the settings not to use ssl - then there is no need to install the certificate,

You can do this by following the steps below: Tools > Options > Git Select Disable SSL certificate validation.


External links

Home page of Git

SourceTree site

  1. At the moment, the tool is not yet runninggit config --system http.sslbackend openssl