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

SSL: SSLV3_ALERT_HANDSHAKE_FAILURE #2774

Open
tfhavingfun opened this issue Apr 19, 2014 · 5 comments
Open

SSL: SSLV3_ALERT_HANDSHAKE_FAILURE #2774

tfhavingfun opened this issue Apr 19, 2014 · 5 comments

Comments

@tfhavingfun
Copy link

@tfhavingfun tfhavingfun commented Apr 19, 2014

$ youtube-dl -v -i 'https://www.youtube.com/watch?v=i_4Kh5kE3xA'
[debug] System config: []
[debug] User config: ['--proxy', 'http://127.0.0.1:8087', '--no-check-certificate', '-o', 'Downloads/youtube-dl/%(title)s.%(ext)s', '-f', '22']
[debug] Command-line args: ['-v', '-i', 'https://www.youtube.com/watch?v=i_4Kh5kE3xA']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.13
[debug] Python version 3.4.0 - Linux-3.14.1-1-ARCH-x86_64-with-arch
[debug] Proxy map: {'http': 'http://127.0.0.1:8087', 'https': 'http://127.0.0.1:8087'}
[youtube] Setting language
WARNING: unable to set language: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:598)>
[youtube] i_4Kh5kE3xA: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:598)>
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 194, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1211, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 1276, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.4/urllib/request.py", line 1238, in do_open
    raise URLError(err)

Also I'm using goagent as my proxy.

@ghost
Copy link

@ghost ghost commented Apr 21, 2014

$ yt-dl -v -f 18 http://www.youtube.com/watch?v=Rrv937P1vUs
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--no-check-certificate', '--no-check-certificate', '-v', '-f', '18', 'http://www.youtube.com/watch?v=Rrv937P1vUs']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.04.21.6
[debug] Python version 3.4.0 - Linux-3.14.1-1-ARCH-i686-with-arch
[debug] Proxy map: {'http': 'http://127.0.0.1:8087', 'https': 'http://127.0.0.1:8087'}
[youtube] Setting language
WARNING: unable to set language: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:598)>
[youtube] Rrv937P1vUs: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:598)>
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 194, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1211, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 1276, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.4/urllib/request.py", line 1238, in do_open
    raise URLError(err)
@phihag
Copy link
Contributor

@phihag phihag commented Apr 21, 2014

It looks like goagent only supports the insecure SSLv2. Thanks for the report, we'll have a look.

@ghost
Copy link

@ghost ghost commented Apr 21, 2014

test again, rollback to goagent-3.1.9 (https://github.com/goagent/goagent/archive/v3.1.9.zip), every thing is ok. youtube-dl was and is fine.

@ghost
Copy link

@ghost ghost commented Apr 22, 2014

goagent/goagent@f8b5eeb
pls close this issue

@ghost
Copy link

@ghost ghost commented May 29, 2014

goagent use TLSv1 as default protocal:
goagent/goagent@586e19a
but youtube-dl DO NOT support TLSv1?
this problem is still not changed.

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.