Enable full https push with user client certificate creation
[girocco.git] / html / rootcert.html
blob0403e260dde09004147dca5b4439731c069c24fa
1 @section=site guide
2 @heading=Root Certificate
3 @header
5 <!-- This file is preprocessed by cgi/html.cgi -->
8 <p>This site provides https support in order to support the Git smart HTTP
9 push protocol.</p>
11 <p>This obviously requires this site to have an SSL server certificate. In order
12 to avoid the hassle (and the cost) of getting an SSL server certificate that
13 has been signed by a root certificate already included (and trusted) by your
14 browser, this site uses its own root certificate.</p>
16 <p>The root certificate for this site is available from:</p>
17 <blockquote>
18 <a href="@@gitwebfiles@@/@@nickname@@_root_cert.pem">@@gitwebfiles@@/@@nickname@@_root_cert.pem</a>
19 </blockquote>
21 <p>A side effect of using an unrecognized root certificate is that Git may
22 complain with an error such as:</p>
23 <blockquote>
24 <tt>error: server certificate verification failed</tt>
25 </blockquote>
27 <p>To see this error in action, simply execute this git command:</p>
28 <blockquote><pre>
29 git ls-remote @@httpspushurl@@/girocco.git
30 </pre></blockquote>
32 <p>Instead of downloading the server&#x2019;s root certificate, server certificate verification may be disabled with one of these techniques:</p>
34 <ol>
35 <li>Set the <tt>GIT_SSL_NO_VERIFY</tt> environment variable like so:
36 <pre>
37 GIT_SSL_NO_VERIFY=1 git ls-remote @@httpspushurl@@/girocco.git
38 </pre></li>
40 <li>Temporarily set the git configuration variable <tt>http.sslVerify</tt> like so:
41 <pre>
42 git -c http.sslVerify=false \
43 ls-remote @@httpspushurl@@/girocco.git
44 </pre></li>
45 </ol>
47 <p>Or, after downloading the root certificate for this site, the error may be
48 avoided through various methods by specifying the root certificate.
49 For each of these methods, the root certificate will be assumed to be in the
50 file <tt>/tmp/@@nickname@@_root_cert.pem</tt>.</p>
52 <ol>
53 <li>Set the <tt>GIT_SSL_CAINFO</tt> environment variable before running git like so:
54 <pre>
55 GIT_SSL_CAINFO=/tmp/@@nickname@@_root_cert.pem \
56 git ls-remote @@httpspushurl@@/girocco.git
57 </pre></li>
59 <li>Temporarily set the git configuration variable <tt>http.sslCAInfo</tt> like so:
60 <pre>
61 git -c http.sslCAInfo=/tmp/@@nickname@@_root_cert.pem \
62 ls-remote @@httpspushurl@@/girocco.git
63 </pre></li>
65 <li>Configure the git <tt>http.sslCAInfo</tt> variable like so:
66 <pre>
67 git config http.sslCAInfo /tmp/@@nickname@@_root_cert.pem
68 </pre>
69 <p>Note that this technique works best after the repository has already been cloned
70 or initialized.</p></li>
71 </ol>
73 <p>For further details see the <tt>git help config</tt> output.</p>
75 @@ifmob@@
76 <p>For information on how to push to the mob branch using https see <a href="@@htmlurl@@/mob.html#httpsmobpush">here</a>.</p>
77 @@end@@