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? #5317
Comments
shelbyKiraM
commented
Mar 29, 2015
|
It's an old problem. See https://github.com/rg3/youtube-dl/search?q=CERTIFICATE_VERIFY_FAILED&type=Issues&utf8=%E2%9C%93 for previous discussions. |
|
|
|
Post the full output with the
It's unsecure, and it seems to be required because of a misconfiguration. |
|
|
If you install openssl with hombrew (it should probably be already installed by wget and python), what happens if you run |
|
17:38:04 user@Daedalus.local Downloads export SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem |
|
Can reproduce this on Mac OS X, latest version of System, and the latest version of youtube-dl.
Can use Thanks in advance for your reply. |
|
Found a solution: Manually install ca-cert, then export this cert as an environment variable A script to install certs: https://gist.github.com/1stvamp/2158128 and then |
|
@izzyleung note that on that the script ca-cert is downloaded over http, probably not the most secure option. |
|
@jaimeMF Yep, thanks for mentioning that. And, just wonder why I have to manually install the certs rather than just use the system default. :-( |
|
@blacRose @jaimeMF Found out the solution, I think it might be the problem of the certs installed by brew's openssl, they might be expired. Just force uninstall openssl by You guys can also add this solution to README of this project to remind those who have the certificate problem. |
|
Problem and temporary workaround detailed below for via Homebrew installations. This isn't a solution, just a dirty hack until OpenSSL do something with the upstream bug report, or Apple do something with the cert situation. Homebrew/legacy-homebrew#38800 (comment) |
|
Thanks for finding the "solution", I'm closing the issue. Feel free to submit a PR adding it to the FAQ |
|
This solved the problem for me, thank you!
|
|
You shouldn't need to force removal of the existing OpenSSL first - Just |
|
Just confirming that I had this problem and the solution to do this worked:
|
|
please help me remove the same error in Ubuntu. I have tried uninstalling openssl using apt-get. |
|
Is this relevant for SSL Certificate failure in Win 7, using youtube-dl updated 18 Dec, and also using youtube-dl-GUI-0.3.7-win? The GUI always fails, the command line only sometimes. |
|
Things are different on Windows and Unix-like systems. See #7309 for more information. Especially, @skarp7c1 provides a possible solution in #7309 (comment). |
|
How do you fix this in Windows and Chocolatey? I already have
Which I got from http://curl.haxx.se/ca/cacert.pem |
|
If I got it right Chocolatey uses official Windows installers from python.org, so you need to do the same - delete expired CA certificates. |
|
What do you mean "delete expired CA certificates"? It's just a text file. Which certificate? They are all encoded. I don't feel like decoding every one to find it's expiration date. I don't even have openssl installed in Windows. |
|
This can also happen if you have something set as your For example exporting plex's lib path...
Causes similar errors. Sorry to bounce up an old bug, couldn't find a useful place to put this as it may be helpful for someone else. |
|
@outhud: remove the broken OpenSSL installation in /usr/local (1.1.1-dev) and rebuild Python if necessary |
Worked for me. |
I used this method , and it's worked! |