1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

Add support for SSL client certificate authentication (#3435)

Adds `--client-certificate`, `--client-certificate-key`, `--client-certificate-password`

Authored-by: coletdjnz
Co-authored-by: df <fieldhouse@gmx.net>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
coletdev
2022-05-02 19:59:45 +12:00
committed by GitHub
parent afac4caa7d
commit bb58c9ed5c
16 changed files with 176 additions and 0 deletions

View File

@ -571,6 +571,19 @@ def create_parser():
'--ap-list-mso',
action='store_true', dest='ap_list_mso', default=False,
help='List all supported multiple-system operators')
authentication.add_option(
'--client-certificate',
dest='client_certificate', metavar='CERTFILE',
help='Path to client certificate file in PEM format. May include the private key')
authentication.add_option(
'--client-certificate-key',
dest='client_certificate_key', metavar='KEYFILE',
help='Path to private key file for client certificate')
authentication.add_option(
'--client-certificate-password',
dest='client_certificate_password', metavar='PASSWORD',
help='Password for client certificate private key, if encrypted. '
'If not provided and the key is encrypted, yt-dlp will ask interactively')
video_format = optparse.OptionGroup(parser, 'Video Format Options')
video_format.add_option(