You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup_transport_http.mkd 2.3KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ## Using the HTTP/HTTPS transport
  2. ### Https with Self-Signed Certificates
  3. You must tell Git/JGit not to verify the self-signed certificate in order to perform any remote Git operations.
  4. **NOTE:**
  5. The default self-signed certificate generated by Gitlbit GO is bound to *localhost*.
  6. If you are using Eclipse/EGit/JGit clients, you will have to generate your own certificate that specifies the exact hostname used in your clone/push url.
  7. You must do this because Eclipse/EGit/JGit (< 3.0) always verifies certificate hostnames, regardless of the *http.sslVerify=false* client-side setting.
  8. - **Eclipse/EGit/JGit**
  9. 1. Window->Preferences->Team->Git->Configuration
  10. 2. Click the *New Entry* button
  11. 3. <pre>Key = <em>http.sslVerify</em>
  12. Value = <em>false</em></pre>
  13. - **Command-line Git** ([Git-Config Manual Page](http://www.kernel.org/pub/software/scm/git/docs/git-config.html))
  14. <pre>git config --global --bool --add http.sslVerify false</pre>
  15. ### Http Post Buffer Size
  16. You may find the default post buffer of your git client is too small to push large deltas to Gitblit. Sometimes this can be observed on your client as *hanging* during a push. Other times it can be observed by git erroring out with a message like: error: RPC failed; result=52, HTTP code = 0.
  17. This can be adjusted on your client by changing the default post buffer size:
  18. <pre>git config --global http.postBuffer 524288000</pre>
  19. ### Disabling SNI
  20. You may run into SNI alerts (Server Name Indication). These will manifest as failures to clone or push to your Gitblit instance.
  21. #### Java-based Clients
  22. Luckily, Java 6-based clients ignore SNI alerts but when using Java 7-based clients, SNI checking is enabled by default. You can disable SNI alerts by specifying the JVM system parameter `-Djsse.enableSNIExtension=false` when your Java-based client launches.
  23. For Eclipse, you can append `-Djsse.enableSNIExtension=false` to your *eclipse.ini* file.
  24. #### Native Clients
  25. Native clients may display an error when attempting to clone or push that looks like this:
  26. ```
  27. C:\projects\git\gitblit>git push rhcloud master
  28. error: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) while accessing https://demo-gitblit.rhcloud.com/git/gitblit.git/info/refs?service=git-receive-pack
  29. fatal: HTTP request failed
  30. ```