35
submitted 2 days ago* (last edited 2 days ago) by SatansDaughter@piefed.blahaj.zone to c/linux@programming.dev

I tried downloading a video using yt-dlp but got the following errors :
ERROR: [requests] Unexpected error: FileNotFoundError: [Errno 2] No such file or directory: '~/.ssl-log.key'; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

ERROR: [urllib] Unexpected error: FileNotFoundError: [Errno 2] No such file or directory: '~/.ssl-log.key'; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

ERROR: Unable to handle request: Unsupported url scheme: "https" (websockets) + 2 unexpected error(s)

After some troubleshooting, I found that I get a similar error when trying to download a package via pip FileNotFoundError: [Errno 2] No such file or directory: '~/.ssl-log.key'

I tried searching to see if I could regenerate ~/.ssl-log.key but couldn't find anything. Does someone know what caused this issue and how to fix it?

Solved: for some reason SSLKEYLOGFILE was being set in my shell config, deleting and unsetting it fixed it

top 3 comments
sorted by: hot top controversial new old
[-] Zikeji@programming.dev 10 points 2 days ago

That file is for debugging. Seems like something is setting SSLKEYLOGFILE. You could try unsetting it (unset SSLKEYLOGFILE). Something is probably setting it in your shell, so you probably want to look at your specific shell configs for a more permanent solution.

Thanks, for some reason there was a line in my fish config that exported the variable, not sure how it got here but deleting it made the problem go away

[-] 30p87@feddit.org 8 points 2 days ago

That is... fishy.

this post was submitted on 07 Dec 2025
35 points (97.3% liked)

Linux

10505 readers
621 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS