cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] ask user for password for PKCS12 files

From: Dmitry Bakshaev <dab1818_at_gmail.com>
Date: Wed, 15 Jun 2016 15:20:57 +0400

only way to use PKCS12 files with password is specify it on command-line
"--cert my.p12:secret" or set via CURLOPT_SSLCERTTYPE option.

this patch adds invocation of PEM_def_callback() to grab password
interactively if password not specified,
like SSL_CTX_use_certificate_chain_file() does for PEM files.

also patch allow to use empty passwords on PKCS12 files.

code based on load_pkcs12() function from openssl/apps/apps.c

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

Received on 2016-06-15