From: Junio C Hamano Date: Fri, 27 Dec 2013 22:21:31 GMT Subject: Re: git:// protocol over SSL/TLS Message-ID: <7viouaj5p0.fsf@alter.siamese.dyndns.org> In-Reply-To: <20131227173655.3f3109e7ba848c90b302e2f9@domain007.com> Konstantin Khomoutov writes: > On Fri, 27 Dec 2013 18:59:00 +0600 > Sergey Sharybin wrote: > >> Quick question is, is it possible to use git:// protocol over >> SSL/TLS/other secure transport? > > The Git protocol does not implement it itself but you can channel it > over a TLS tunnel (via stunnel for instance). Unfortunately, this > means a specialized software and setup on both ends so if the question > was about a general client using stock Git then the answer is no, it's > impossible. Hmph, I somehow had an impression that you wouldn't need anything more complex than a simple helper that uses git-remote-ext on the client side. On the remote end, you'd need to have something that terminates the incoming SSL/TLS and plugs it to your git daemon. > >> Or the recommended way to do secure anonymous checkout is to simply >> use https:// ? > > Yes, but it will only be secure if you've managed to verify the > server's certificate and do trust its issuer (or a CA higher up the > cert's trust chain) -- people tend to confuse "encrypted" with > "secure" which is not at all the same thing.