I'm on a Macbook with macOS 10.15.5. I have MacPorts, but I am using the 'native' version of
% curl --version curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2 Release-Date: 2019-03-27 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets
When I try to d/l the latest
youtube-dl, I get a certificate error:
% sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl % 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 did take a look at the 'web page mentioned above', but I did not find a solution. The youtube-dl maintainers at GitHub are adamant that their cert is valid and up-to-date. They offered this document as "the answer", but I found nothing useful in it.
curl is able to download other SSL webpages without issue, and so I believe the issue is particular to this certificate/website.
I've never had this issue. I have an older Macbook with Mojave - I've updated or re-installed
youtube-dl several times without incident, but it also fails now. However, I can run this same
curl command on my Ubuntu Linux box, and it works fine. I have to guess this means that both Macs are "missing something" - something that the Mojave Mac once had, but has been removed.
What do I need to do to the Macs to get
curl to handle SSL certificates?