-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linkcheck does not use SNI #1655
Comments
From Takayuki Shimizukawa on 2014-12-19 13:50:21+00:00 I think the issue relates to #1373. |
From Takayuki Shimizukawa on 2014-12-19 14:03:46+00:00 Duplicate of #1373. |
From Jean-Paul Calderone on 2014-12-19 14:05:16+00:00 This isn't a duplicate. This isn't about validating certificates. It's about using the SNI TLS protocol feature so it's possible to begin a TLS handshake at all. |
From Takayuki Shimizukawa on 2014-12-19 14:08:16+00:00 Which combination of versions are you using? |
From Jean-Paul Calderone on 2014-12-19 14:13:32+00:00 I think this affects pretty much all versions. linkcheck uses I can verify that this happens against Python 2.7.6 / Sphinx 1.2.2 specifically, though. |
From Takayuki Shimizukawa on 2014-12-19 14:43:23+00:00 I tested SNI with several python version.
The cause of this problem that you reported lies in traditional Python ssl module. |
From Jean-Paul Calderone on 2014-12-19 14:49:00+00:00 Switching to a different HTTP client (not urllib) would be one way to fix it. |
From Jean-Paul Calderone on 2014-12-19 14:49:59+00:00
What did you test, exactly? Not |
From Tom Prince on 2014-12-21 02:26:45+00:00 Testing with fedora rawhide (python 2.7.9), it appears that SNI works. |
From Tom Prince on 2014-12-21 05:53:19+00:00 On the other hand, I believe that pip uses |
ref: https://github.com/kennethreitz/requests/issues/749 it seems hard. |
Any progress on this. There are way more https sites now it seems than a year ago. |
Actually, no progress. I think sphinx should use |
@shimizukawa In master branch, we already use |
Oh, I hadn't realized that.. Thanks! |
When checking an HTTPS link hosted on a server that requires SNI, linkcheck fails to establish a connection (or perhaps "connects" to the wrong virtual host). This causes spurious link check failures with errors like:
<urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure>
and makes
make linkcheck
exit with error.The text was updated successfully, but these errors were encountered: