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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
 
(6 גרסאות ביניים של 3 משתמשים אינן מוצגות)
שורה 1: שורה 1:
 
{{עמוד בעברית|התקנת תעודה ב GIT}}
 
{{עמוד בעברית|התקנת תעודה ב GIT}}
<div lang="en" dir="ltr">  
+
<div dir="ltr" lang="en">  
  
 
{{קישור אנגלית לתצוגת קריאה}}
 
{{קישור אנגלית לתצוגת קריאה}}
  
 
{{Navigation|Security certificate}}
 
{{Navigation|Security certificate}}
 +
'''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>.'''
  
Download the certificate of your Provider of NetFree from here.
+
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.
http://netfree.link/netfree-ca.crt
 
Save it on the computer.
 
  
  
Then run the next command, of course you must put the correct address of the certificate in this place '''netfree-ca.crt'''
+
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"'''
  
  git config --global http.sslCAInfo '''netfree-ca.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 https://netfree.link/cacert/cacert-bundle-curl-plus-netfree.pem, save to a location, then write a command to take it from that location.
  
It should now work.
+
'''pay attention! Change the path path/to/netfree-ca-bundle-curl.pem/ 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
  
To uninstall the certificate run this command.
+
Credit: http://stackoverflow.com/a/16543283
  
  git config --global --unset http.sslVerify
 
  
 +
----
  
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 is to set the SLL off, eliminating the need for a security certificate (a 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:
  
  
 
   git config --global http.sslVerify "false"
 
   git config --global http.sslVerify "false"
  
 +
If you want to cancel the operation, run:
 +
 +
  git config --global --unset http.sslVerify
  
 
----
 
----
  
 
+
====SourceTree====
==== SourceTree ====
 
  
 
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.
שורה 55: שורה 64:
  
 
[https://www.sourcetreeapp.com/ SourceTree site]
 
[https://www.sourcetreeapp.com/ SourceTree site]
 +
<references />

גרסה אחרונה מ־16:48, 3 באפריל 2024

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

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 https://netfree.link/cacert/cacert-bundle-curl-plus-netfree.pem, 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.pem/ 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