35
submitted 9 months ago* (last edited 9 months 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

you are viewing a single comment's thread
view the rest of the comments
[-] Zikeji@programming.dev 10 points 9 months 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.

[-] SatansDaughter@piefed.blahaj.zone 7 points 9 months ago

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 9 months ago

That is... fishy.

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

Linux

14875 readers
397 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 3 years ago
MODERATORS