[Teamcoco] "hostname doesn't match either of" multiple domains certificate error #13734

Closed
opened 2026-02-21 06:10:04 -05:00 by deekerman · 2 comments
Owner

Originally created by @s1tl on GitHub (May 29, 2018).

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.05.26. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.05.26

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

user@server:~# youtube-dl -v http://teamcoco.com/video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney?playlist=x;eyJ0eXBlIjoidGFnIiwiaWQiOjl9
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://teamcoco.com/video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney?playlist=x']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.05.26
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-112-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.14-0ubuntu0.16.04.1, ffprobe 2.8.14-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[Teamcoco] video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney: Downloading JSON metadata
[Teamcoco] 103839: Downloading JSON metadata
[Teamcoco] 103839: Downloading m3u8 information
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 472, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 462, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 500, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/teamcoco.py", line 163, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1456, in _extract_m3u8_formats
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 599, in _download_webpage_handle
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 579, in _request_webpage
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, in urlopen
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1101, in https_open
  File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 859, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1278, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python2.7/ssl.py", line 353, in wrap_socket
    _context=self)
  File "/usr/lib/python2.7/ssl.py", line 601, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 838, in do_handshake
    match_hostname(self.getpeercert(), self.server_hostname)
  File "/usr/lib/python2.7/ssl.py", line 272, in match_hostname
    % (hostname, ', '.join(map(repr, dnsnames))))
ssl.CertificateError: hostname u'teamcoco-api-prod-2.us-west-1.elasticbeanstalk.com' doesn't match either of '*.teamcoco.com', '*.prod-2.teamcoco.com'
eyJ0eXBlIjoidGFnIiwiaWQiOjl9: command not found

...
<end of log>

Description of your issue, suggested solution and other information

When trying to download a video from teamcoco it looks like the content may be hosted in elasticbeanstalk, as a result the teamcoco.com cert does not match the cert for elasticbeanstalk.com. This results in a failure of ssl and breaks youtube-dl

Suggested fix:

https://stackoverflow.com/questions/32667485/requests-exceptions-sslerror-hostname-boxfwd-com-doesnt-match-either-of-nyc

Originally created by @s1tl on GitHub (May 29, 2018). ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what your issue will actually look like --- ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.05.26*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected. - [x] I've **verified** and **I assure** that I'm running youtube-dl **2018.05.26** ### Before submitting an *issue* make sure you have: - [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections - [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones - [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser ### What is the purpose of your *issue*? - [x] 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 --- ``` user@server:~# youtube-dl -v http://teamcoco.com/video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney?playlist=x;eyJ0eXBlIjoidGFnIiwiaWQiOjl9 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-v', u'http://teamcoco.com/video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney?playlist=x'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2018.05.26 [debug] Python version 2.7.12 (CPython) - Linux-4.4.0-112-generic-x86_64-with-Ubuntu-16.04-xenial [debug] exe versions: ffmpeg 2.8.14-0ubuntu0.16.04.1, ffprobe 2.8.14-0ubuntu0.16.04.1, rtmpdump 2.4 [debug] Proxy map: {} [Teamcoco] video/full-episode-thurs-5-24-james-comey-tig-notaro-and-cory-kahaney: Downloading JSON metadata [Teamcoco] 103839: Downloading JSON metadata [Teamcoco] 103839: Downloading m3u8 information Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 472, in main File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 462, in _real_main File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in download File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 792, in extract_info File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 500, in extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/teamcoco.py", line 163, in _real_extract File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1456, in _extract_m3u8_formats File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 599, in _download_webpage_handle File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 579, in _request_webpage File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, in urlopen File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1101, in https_open File "/usr/lib/python2.7/urllib2.py", line 1195, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 897, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 859, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 1278, in connect server_hostname=server_hostname) File "/usr/lib/python2.7/ssl.py", line 353, in wrap_socket _context=self) File "/usr/lib/python2.7/ssl.py", line 601, in __init__ self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 838, in do_handshake match_hostname(self.getpeercert(), self.server_hostname) File "/usr/lib/python2.7/ssl.py", line 272, in match_hostname % (hostname, ', '.join(map(repr, dnsnames)))) ssl.CertificateError: hostname u'teamcoco-api-prod-2.us-west-1.elasticbeanstalk.com' doesn't match either of '*.teamcoco.com', '*.prod-2.teamcoco.com' eyJ0eXBlIjoidGFnIiwiaWQiOjl9: command not found ... <end of log> ``` ### Description of your *issue*, suggested solution and other information When trying to download a video from teamcoco it looks like the content may be hosted in elasticbeanstalk, as a result the teamcoco.com cert does not match the cert for elasticbeanstalk.com. This results in a failure of ssl and breaks youtube-dl Suggested fix: https://stackoverflow.com/questions/32667485/requests-exceptions-sslerror-hostname-boxfwd-com-doesnt-match-either-of-nyc
Author
Owner

@dan-lootcrate commented on GitHub (May 29, 2018):

Did you try the --no-certificate-check argument?

@dan-lootcrate commented on GitHub (May 29, 2018): Did you try the `--no-certificate-check` argument?
Author
Owner

@s1tl commented on GitHub (May 30, 2018):

That worked, thanks.

@s1tl commented on GitHub (May 30, 2018): That worked, thanks.
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#13734
No description provided.