Installation of certificate in GIT: הבדלים בין גרסאות בדף
(5 גרסאות ביניים של 3 משתמשים אינן מוצגות) | |||
שורה 1: | שורה 1: | ||
{{עמוד בעברית|התקנת תעודה ב GIT}} | {{עמוד בעברית|התקנת תעודה ב GIT}} | ||
− | <div | + | <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>.''' | |
+ | 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 | |
− | git config --global http. | ||
+ | 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 | 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: [http://wiki.netfree.link/images/e/eb/WinCertsToPem.zip WinCertsToPem.zip]. | |
− | |||
---- | ---- | ||
− | Another 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: | ||
שורה 47: | שורה 51: | ||
---- | ---- | ||
− | + | ====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, | ||
− | + | 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:48, 3 באפריל 2024
לעברית לחצו כאן
To switch from edit view to read view
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
- ↑ At the moment, the tool is not yet running
git config --system http.sslbackend openssl