Getting "ssl required" when using an https URL

Matt Nordhoff mnordhoff at
Sat Mar 8 09:26:09 CST 2008

Pazu wrote:
> Yeah, I discovered that this doesn't work as expected shortly after
> the first time I configured the server -- I just never bothered to
> remove the section…
> Anyway, back to the matter at hand — does anyone have any idea why
> hgweb keeps saying "ssl required" even though the request is, in
> theory, going through ssl? Is there any flag that I can turn on to get
> more detailed debug information?
> At first I thought that my python runtime didn't support SSL, and the
> call is in reality going through plain HTTP as a fallback mechanism.
> This doesn't seem to be the case, however:
> pazu at mini:local$ python
> Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import urllib2
>>>> hasattr(urllib2, 'HTTPSHandler')
> True
> -- Pazu

I dunno if that class being available means HTTPS actually works.
Anyway, the sample session in your first post shows that the connection
is working (it discovers the server's capabilities and which changeset
needs to be sent).

Shrug. I'm totally not a Mercurial expert.

I wonder, could it be something wrong with how you set up hgwebdir?
Like, the connection from the client to Lighttpd is HTTPS, but Lighttpd
is making a separate connection to hgwebdir over regular HTTP, and
that's why hgwebdir is erroring out.

(Also, if you meant does the client validate the cert, I doubt it.
Python's standard library won't support that until the next release, 2.6.)

(No, Thunderbird spell checker, when I wrote "erroring" I did not mean

More information about the Mercurial mailing list