Mercurial > public > mercurial-scm > hg-stable
diff tests/test-https.t @ 12784:763be3cd084a
hgweb: use Pythons ssl module for HTTPS serve when using Python 2.6 or later
pyOpenSSL apparently doesn't work for Python 2.7 and isn't very actively
maintained.
The built-in ssl module seems like a long-term winner, so we now use that with
Python 2.6 and higher.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 20 Oct 2010 20:19:34 +0200 |
parents | 949dfdb3ad2d |
children | 2fa2e6444645 |
line wrap: on
line diff
--- a/tests/test-https.t Wed Oct 20 20:19:32 2010 +0200 +++ b/tests/test-https.t Wed Oct 20 20:19:34 2010 +0200 @@ -1,12 +1,7 @@ -Proper https client requires the built-in ssl from Python 2.6, -and https serve requires the full OpenSSL module. +Proper https client requires the built-in ssl from Python 2.6. $ "$TESTDIR/hghave" ssl || exit 80 -HTTPS serve seems to be broken on Python 2.7: - - $ [ "`python -c 'import sys; print sys.version_info[:2]'`" = '(2, 6)' ] || exit 80 - Certificates created with: printf '.\n.\n.\n.\n.\nlocalhost\nhg@localhost\n' | \ openssl req -newkey rsa:512 -keyout priv.pem -nodes -x509 -days 9000 -out pub.pem