Installation of certificate in GIT: הבדלים בין גרסאות בדף

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
מ (Removed duplicate option)
שורה 7: שורה 7:
 
'''Update: as of 3 May 2019, a [[Standard certificate installer|new certificate installation software]] was released, the new software automatically installs the certificate also in GIT'''<ref>At the moment, the tool is not yet running<code>git config --system http.sslbackend openssl</code></ref>.'''
 
'''Update: as of 3 May 2019, a [[Standard certificate installer|new certificate installation software]] was released, the new software automatically installs the certificate also in GIT'''<ref>At the moment, the tool is not yet running<code>git config --system http.sslbackend openssl</code></ref>.'''
  
 +
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.
  
Download this file [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip Curl-ca-bundle.zip] And extract its contents.
 
  
 +
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"
  
Run the following command, depending on the location of the certificate file you extracted.
+
Accordingly you would run this command:
 +
git config --global http.sslCAInfo '''"C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"'''
  
In Windows systems, in case you have installed the security certificate installation software, the file exists at the following location:
+
Additionally, on windows you also need to run
"C:\ProgramData\NetFree\CA\netfree-ca-bundle-curl.crt"
+
  git config --global http.sslbackend openssl
  git config --global http.sslCAInfo /path/to/netfree-ca-bundle-curl.crt
 
 
 
If this doesn't work, you may need to use Command Prompt/Powershell and not bash, or try to change the slashes in the file path from "\" (the way Windows displays them) to "/" (the way Linux displays them and bash expects them)
 
  
 +
On MAC or any other scenario:
 +
Download the following file [http://wiki.netfree.link/images/a/ac/Curl-ca-bundle.zip Curl-ca-bundle.zip] and extract its contents, save to a location, then write a command to take it from that location.
  
The Windows system also needs to run:
+
'''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.'''
git config --global http.sslbackend openssl
 
If you want to cancel the operation, run:
 
  
 +
To cancel run the following command:
 
  git config --global --unset http.sslCAInfo  
 
  git config --global --unset http.sslCAInfo  
  
⚠ If you use a git graphical client, sometimes the <code>git</code> command is not installed globally. To run the above commands you need to find the path to the git.exe file and write the entire path (inside quotation marks) instead of the word <code>git</code.
+
Credit: http://stackoverflow.com/a/16543283
  
To embed existing certificates on your computer using git software, you can download the following file: [http://wiki.netfree.link/images/e/eb/WinCertsToPem.zip WinCertsToPem.zip] and run it.
 
  
 +
----
  
Credit to 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: [http://wiki.netfree.link/images/e/eb/WinCertsToPem.zip WinCertsToPem.zip].
 
 
  
 
----
 
----
  
  
Another option, cancel the SLL, which eliminates the need for a security certificate (less recommended option).
+
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:
 
To do this, run the following command:
שורה 54: שורה 55:
 
When working with SourceTree software (GIT Graphic Client, [https://www.sourcetreeapp.com/ link]), You can also specify in the settings not to use ssl - then there is no need to install the certificate,
 
When working with SourceTree software (GIT Graphic Client, [https://www.sourcetreeapp.com/ link]), You can also specify in the settings not to use ssl - then there is no need to install the certificate,
  
The check will be done when entering the menu
+
You can do this by following the steps below:
 
Tools > Options > Git
 
Tools > Options > Git
 
Select Disable SSL certificate validation.
 
Select Disable SSL certificate validation.

גרסה מ־16:29, 18 בדצמבר 2023

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

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