aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorcoletdev <coletdjnz@protonmail.com>2022-05-02 19:59:45 +1200
committerGitHub <noreply@github.com>2022-05-02 07:59:45 +0000
commitbb58c9ed5c3121bf55edcac9af8d62f5143b89d8 (patch)
treef7a4f792529513c6892c66b86840c39fc02a1429 /yt_dlp/options.py
parentafac4caa7db30804bebac33e53c3cb0237958224 (diff)
downloadhypervideo-pre-bb58c9ed5c3121bf55edcac9af8d62f5143b89d8.tar.lz
hypervideo-pre-bb58c9ed5c3121bf55edcac9af8d62f5143b89d8.tar.xz
hypervideo-pre-bb58c9ed5c3121bf55edcac9af8d62f5143b89d8.zip
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>
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 944147871..60f866570 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -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(