2

When downloading a YouTube video using youtube-dl, I get the following error:

MacBook-Pro:ytd user$ youtube-dl "https://youtu.be/dgxpBpa9A48"  
[youtube] dgxpBpa9A48: Downloading webpage  
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)')))

What is causing this? How do I overcome it and download the video?

  • See if are able to open that URL in a browser window without getting any error (regarding untrusted connection or certificate). – Nimesh Neema Sep 28 '18 at 19:19
  • What version are you running? Issue the command youbute-dl --version – Allan Sep 28 '18 at 21:11
3

For some reason youtube-dl has cert issues. I have always found a solution by using --no-check-certificate argument.

From the man page:

--no-check-certificate
              Suppress HTTPS certificate validation

Should really say "Ignores HTTPS certificate validation"...

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .