SSL: SSLV3_ALERT_HANDSHAKE_FAILURE #2232

Open
opened 2026-02-20 22:24:56 -05:00 by deekerman · 5 comments
Owner

Originally created by @tfhavingfun on GitHub (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.

Originally created by @tfhavingfun on GitHub (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.
Author
Owner

@ghost commented on GitHub (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)
@ghost commented on GitHub (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) ```
Author
Owner

@phihag commented on GitHub (Apr 21, 2014):

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

@phihag commented on GitHub (Apr 21, 2014): It looks like goagent only supports the insecure SSLv2. Thanks for the report, we'll have a look.
Author
Owner

@ghost commented on GitHub (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 commented on GitHub (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.
Author
Owner

@ghost commented on GitHub (Apr 22, 2014):

github.com/goagent/goagent@f8b5eebe3e
pls close this issue

@ghost commented on GitHub (Apr 22, 2014): https://github.com/goagent/goagent/commit/f8b5eebe3ea298a3b35c8d85c085e24e9936226d pls close this issue
Author
Owner

@ghost commented on GitHub (May 29, 2014):

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

@ghost commented on GitHub (May 29, 2014): goagent use TLSv1 as default protocal: https://github.com/goagent/goagent/commit/586e19a887dbf1a7d6e14b4a1240c80930c45c34 but youtube-dl DO NOT support TLSv1? this problem is still not changed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#2232
No description provided.