Installation of certificate in GIT: הבדלים בין גרסאות בדף
מ (Removed duplicate option) |
DovidStroh (שיחה | תרומות) |
||
שורה 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. | ||
− | |||
+ | 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 [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. | ||
− | + | '''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 | 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: | ||
שורה 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, | ||
− | + | 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
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
- ↑ At the moment, the tool is not yet running
git config --system http.sslbackend openssl