Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newgrounds.com SSL cert fail #26408

Open
bradenbest opened this issue Aug 22, 2020 · 13 comments
Open

newgrounds.com SSL cert fail #26408

bradenbest opened this issue Aug 22, 2020 · 13 comments

Comments

@bradenbest
Copy link

@bradenbest bradenbest commented Aug 22, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.newgrounds.com/portal/view/635752', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
[Newgrounds] 635752: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),))
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 464, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 482, in _open
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\utils.py", line 2736, in https_open
  File "C:\Python\Python34\lib\urllib\request.py", line 1185, in do_open

Description

WRITE DESCRIPTION HERE

I have additionally checked with the "padlock" on google chrome's omnibar and it claims newground.com's SSL cert is valid. Since that is enough evidence to conclude that it is probably a problem with youtube-dl, I'm submitting this issue.

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

Uh, don't mind the url. I was gonna make a meme replacing the father's oink with the 'loud nigra' meme.

Discord memes...

@s104346
Copy link

@s104346 s104346 commented Aug 22, 2020

--no-check-certificate

Older Python versions have trouble validating certain SSL certificates, so maybe try this with a newer Python.

@llacb47
Copy link

@llacb47 llacb47 commented Aug 22, 2020

There's your video: https://uploads.ungrounded.net/alternate/755000/755704_alternate_9593.1080p.mp4

@EricBobrow
Copy link

@EricBobrow EricBobrow commented Aug 22, 2020

I'm getting an SSL error that says the certificate has expired:

ericbobrow@Eric-Bobrows-2020-MacBook-Pro ~ % sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

I think this is related to the current issue reported by @bradenbest

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

There's your video: https://uploads.ungrounded.net/alternate/755000/755704_alternate_9593.1080p.mp4

yeah I already grabbed it via the inspector. Here's the meme if you want to see it for some god forsaken reason: https://cdn.discordapp.com/attachments/399627670327001089/746827448783470623/peppa-pig-loud.mp4

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

--no-check-certificate

Older Python versions have trouble validating certain SSL certificates, so maybe try this with a newer Python.

the --no-check-certificate flag works, but my python version is 3.7.9 and it's showing a build date of August 17 2020, so I sincerely doubt my python dist is out of date. The libraries could be a different story, but after my many run-ins with python dependency hell, I'd really rather not touch that.

@s104346
Copy link

@s104346 s104346 commented Aug 22, 2020

my python version is 3.7.9

Your debug log shows youtube-dl is running on Python version 3.4.4.
Are you using youtube-dl.exe from the Releases page?

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

my python version is 3.7.9

Your debug log shows youtube-dl is running on Python version 3.4.4.
Are you using youtube-dl.exe from the Releases page?

huh, weird. I thought the exe was just a wrapper that links to python dynamically. Yes, I got it from either the website or a github release. Just the exe. I try to avoid full installations on windows since its way of installing programs is very messy.

@EricBobrow
Copy link

@EricBobrow EricBobrow commented Aug 22, 2020

FYI - when I go to https://yt-dl.org it shows as Not Secure in Chrome, so there appears to be a problem with the SSL certificate.

Screenshot:
https://www.screencast.com/t/sPNmmeM40

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

Possibly related: the update command fails, too.

ytdl -U
ERROR: can't find the current version. Please try again later.

I was gonna say that the update command should also update the version of python that comes with youtube-dl, and then I saw that the command doesn't even work.

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 22, 2020

I renamed my youtube-dl to ytdl.exe since windows' tab completion seems to only be capable of completing paths.

I doubt that's an issue but it if is I can always symlink it.

@EricBobrow
Copy link

@EricBobrow EricBobrow commented Aug 23, 2020

FYI - I was able to work around the SSL certificate issue by adding the -k option to the curl command.
I was then able to get youtube-dl to work OK on my computer.

I was disappointed however in the speed of file transfer; I have gigabit internet and direct downloads from my personal Vimeo account (or other services) are very fast; with this tool, it took much longer.

I have decided that this will not be the best solution for my needs. I have tested and will use MultCloud to grab videos from my Vimeo account by URL - copying them over into my Dropbox account. I'll have a VA handle this one by one, it will be tedious given that we have over 1,000 videos, but this approach will avoid having to download a terabyte or more at very slow speeds (then re-uploading as well). I will keep youtube-dl in mind for other tasks.

@bradenbest
Copy link
Author

@bradenbest bradenbest commented Aug 23, 2020

FYI - I was able to work around the SSL certificate issue by adding the -k option to the curl command.
I was then able to get youtube-dl to work OK on my computer.

I was disappointed however in the speed of file transfer; I have gigabit internet and direct downloads from my personal Vimeo account (or other services) are very fast; with this tool, it took much longer.

I have decided that this will not be the best solution for my needs. I have tested and will use MultCloud to grab videos from my Vimeo account by URL - copying them over into my Dropbox account. I'll have a VA handle this one by one, it will be tedious given that we have over 1,000 videos, but this approach will avoid having to download a terabyte or more at very slow speeds (then re-uploading as well). I will keep youtube-dl in mind for other tasks.

I think you should open a separate issue about those slow download speeds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.