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.
SSL CERTIFICATE_VERIFY_FAILED on the compiled binary on Windows XP #7309
Comments
|
Which URL are you trying? Post the full verbose log with |
|
Any URL.
Note that using "http" auto-redirects to "https", thus resulting in the same error. Contrast the above with the compiled version of "2015.10.18", which works as expected:
|
|
Works fine for me with exactly same OS:
|
|
@dstftw Could you post the version of openssl installed as well as the contents of the PATH variable? This puzzles me since both curl and wget can access the youtube page over https without a sweat. |
|
No OpenSSL is installed. |
|
Note that this only happens with youtube. |
|
Bug is also on Windows 7.
Output of https://yt-dl.org/downloads/2015.10.24/youtube-dl.exe:
Edit: And as OP wrote option |
|
@justa9 @henrik-jensen Can you watch the problematic video on Internet Explorer without proxies or VPN? |
@yan12125 Yes |
|
@yan12125 "Watch" is an optimistic term when talking about IE, but I can confirm that the SSL connection is established, the page is mostly loaded and the multimedia content loads and starts playing. |
|
Well, how about clearing SSL state following Microsoft's instructions, opening the desired YouTube video in IE and trying youtube-dl again? |
|
@yan12125 I tried clear SSL state in IE 11 on my windows 7 system. No luck,- same error messages. Anyway,- are you saying that youtube-dl on windows somehow reuses IE explorers SSL certificat cache ?!!! Or are there some common SSL Windows API's that all apps goes through and they therefore share this cache? |
|
@yan12125 I concur. Clearing SSL cache did not solve the problem. |
|
Downloaded The source with binaries unpacked it and ran it as a developer with |
|
Try with python 2.7.10. 2.7.8 probably works because of that. |
|
@dstftw Ahh thanks, did not know. I'll update it and try again. |
|
Is there a way one can set the location of the crt or pem file (i.e. the one offered by curl/libcurl) either in a hardcoded way inside the source or as a config option? |
|
@dstftw Yeps,- updating to 2.7.10 and the SSL error is back also when running as developer. |
|
For Python 2.7.10, certificates are loaded from system certificate stores via Windows Cryptography API. (ref. ssl.py, _ssl.c). I guess IE uses the same API, while things seem not that easy now. |
|
NOTE: Originally posted on Issue #7450 , but moved here b/c closed by dstftw for being a duplicate to this Issue. COMMENT: I would think the Issue would be categorized as a separate issue given that the OS's are different (XP vs Win 7) As of Nov 12, 2015, I have Certificate_Verify_Failed error. Using latest build 11/10: Using command line prompt, the following command is issued: youtube-dl -i --batch-file ./ImportChoons.txt --format "best" --extract-audio --audio-format "best" --audio-quality 0 where ImportChoons.txt is a file containing misc links to video clips on YouTube. Only change from youtube-dl working and not working is upgrading youtube-dl to 11/10/2015 version |
|
@bamcdougall your post brings nothing helpful, no verbose log, not even real example URL. |
|
I have the same issue: #7475 but in Win 10
|
|
Hi there! |
|
You may disable certificate checking with |
|
It happens to me in a Windows 8.1 with Bing. Installing Chrome fixed the issue. |
|
Some users in my app report the same issue. |
|
@dstftw can you give an example of the usage? trying it gave back more errors.
|
|
Small heads up. This bit me today. The cert was set to expire on 2017-01-01. So happy ne year, I guess... @skarp7c1 's update procedure worked fine for me. |
|
@avih Wow that worked like a charm! |
|
From @akiraaisha: This works on me in Windows. Clearing SSL Cache. Hope it helps. |
|
fyi, you don't need to @ people that are already subscribed to the issue for them to be notified. |
|
And the issue still occurs because the official windows binary is still based on python 3.4 which doesn't get new releases anymore or for quite some time. |
It's wrong. This issue is unrelated to the Python version you're using. It's caused by a broken system configuration. Check out #7309 (comment) |
|
I ended up disabling ssl by default on my application. |
|
Well, I've never seen anyone complain about this with 3.6+ whereas all issues I've seen came from people using the official binary, so I guess everyone's certs are broken except when using up-to-date python. |
|
I have the same issue after updating to 2018.03.26.1 (on windows 1709 x64 and python 3.4.4) using youtube-dl.exe (official windows binary) -U |
|
They use expired certs? Maybe someone should report that to Google instead? |
|
No, youtube-dl.exe doesn't user the expired certificates, but if there are
expired certificates in the system, if stops working.
Open certmgr.msc and manually delete expired root and intermediate CAs
|
|
hangouts needs thoses expired root/CA to work without warnings. |
|
They use expired certs? Maybe someone should report that to Google instead? |
|
I' ve a definitive solution FOR ME to this .You can redirect the download directory for youtube-dl to avoid this error :1. first locate your "settings.json" usually in "C:\Users<your user>\AppData\Roaming\youtube-dlg" 2. edit the last line ("youtubedl_path".............. ") |
The compiled binaries (32-bit, Windows XP) for the last two versions produce an error when trying to access youtube.
Both official and locally-compiled binaries were tested to no avail.
"--no-check certificate" works as expected, but since it's not recommended, I was wondering whether there was more to that.
Last working compiled version was "2015.10.18".