Skip to content
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

Sites using SNI return an SSL error #9849

Closed
steebchen opened this issue Jun 21, 2016 · 1 comment
Closed

Sites using SNI return an SSL error #9849

steebchen opened this issue Jun 21, 2016 · 1 comment

Comments

@steebchen
Copy link
Contributor

@steebchen steebchen commented Jun 21, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.06.20
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Some SSL sites return an error when trying to download with youtube-dl. In the browser, they work perfectly. I think this could be because of Cloudflare free SSL is using SNI for its domains.

The error message:

youtube-dl "https://www.krautcomputing.com/blog/2014/12/14/how-to-get-free-ssl-for-your-squarespace-website-with-cloudflare/" -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'https://www.krautcomputing.com/blog/2014/12/14/how-to-get-free-ssl-for-your-squarespace-website-with-cloudflare/', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.20
[debug] Python version 2.7.6 - Linux-3.16.0-38-generic-x86_64-with-LinuxMint-17.2-rafaela
[debug] exe versions: ffmpeg N-75403-g3a8e447, ffprobe N-75403-g3a8e447, rtmpdump 2.4
[debug] Proxy map: {}
[generic] how-to-get-free-ssl-for-your-squarespace-website-with-cloudflare: Requesting header
WARNING: Could not send HEAD request to https://www.krautcomputing.com/blog/2014/12/14/how-to-get-free-ssl-for-your-squarespace-website-with-cloudflare/: <urlopen error [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error>
[generic] how-to-get-free-ssl-for-your-squarespace-website-with-cloudflare: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error> (caused by URLError(SSLError(1, '_ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error'),))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 390, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1950, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 951, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)

There is no video on this webpage and nothing is supposed to be downloaded, it's just an example URL which uses Cloudflare free SSL. Just imagine this error would prevent a video from being downloaded.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 21, 2016

SNI is not supported by python prior to 2.7.9.

@dstftw dstftw closed this Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.