Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube - ssl: certificate_verify_failed #4896
Comments
|
Can you check if it works with the |
|
It works. But why windows certificate verify failed? |
|
We'll have to investigate the issue, using that option is a workaround (unsafe of course). |
|
Is it only me? |
|
It works for me on windows both with python 2.7.9 and 3.4.2 |
|
I try python 2.7.8 and i don't get the error. |
|
But 2.7.8 can't verify the certificates, so it's the same as using the |
|
i didn't know that. so this is a windows/python problem cause of my configuration. python request something from ie to verify ssl? I should close this issue, but I want to hear some opinions. |
|
I don't really know, I think it uses the system certificates but I don't know how it gets them. |
|
I get the same error on FreeBSD, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)> (caused by URLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))Unfortunately It seems to be an issue with old SSH certificates, and as pointed out in #4807, the following does the trick for me: # pkg update ca_root_nss
export SSL_CERT_FILE=/usr/local/share/certs/ca-root-nss.crt |
|
got the same error on OS X 10.10:
|
|
@Sevyls that's not an issue with youtube-dl, it's caused by the openssl installed with Homebrew. Try with the solutions listed in these comments: #5317 (comment) and #5317 (comment). |
|
This works on me in Windows. Clearing SSL Cache. Hope it helps. |
|
Thanks for the tip! I believe it can help others, so I copied it to #7309, which is the main issue for certificate errors on Windows. If you have any further findings, just leave comments there. |
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=wnuCSm
qC7tI']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.02.06
[debug] Python version 2.7.9 - Windows-7-6.1.7601-SP1
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] wnuCSmqC7tI: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILE
D] certificate verify failed (_ssl.c:581)> (caused by URLError(SSLError(1, u'[SS
L: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))
File "youtube-dl\youtube_dl\extractor\common.py", line 301, in _request_webpag
e
return self._downloader.urlopen(url_or_request)
File "youtube-dl\youtube_dl\YoutubeDL.py", line 1578, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(_args)
File "youtube-dl\youtube_dl\utils.py", line 665, in https_open
req, *_kwargs)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)