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

Adding ssl keys log using SSLKEYLOGFILE env var for SSLContext (yt-dlp/yt-dlp#9531) #9543

Merged
merged 2 commits into from Apr 8, 2024

Conversation

luiso1979
Copy link
Contributor

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Added the possibility to log the ssl keys of secure communications by specifying the standard env variable SSLKEYLOGFILE for request handles using the SSLContext.

Fixes #9531

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@coletdjnz coletdjnz added enhancement New feature or request networking core networking related labels Mar 27, 2024
@coletdjnz coletdjnz self-requested a review March 27, 2024 08:48
Copy link
Member

@Grub4K Grub4K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should def be supported

When keylog_filename is supported and the environment variable SSLKEYLOGFILE is set, create_default_context() enables key logging.

as per the ssl docs

yt_dlp/networking/_helper.py Outdated Show resolved Hide resolved
@luiso1979
Copy link
Contributor Author

@coletdjnz Do I need to do something else, or just wait?

@Grub4K Grub4K merged commit 79a451e into yt-dlp:master Apr 8, 2024
15 checks passed
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request networking core networking related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DUMP SSL keys using the environment variable $SSLKEYLOGFILE
5 participants