diff options
author | Matthew Hall <matthew.hall@threatstream.com> | 2015-03-24 17:36:32 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-04-13 22:25:04 +0200 |
commit | a471a9f3b6e1fbb0b2a8c6e1c0106bcaaad8b53f (patch) | |
tree | 8d5c058b0f6cf18b9ff22577d8e24d2b57c8faca /lib/vtls | |
parent | 27ac643455b55a6c180b94d2ff3b29e2babdf1fc (diff) | |
download | curl-a471a9f3b6e1fbb0b2a8c6e1c0106bcaaad8b53f.tar.gz |
vtls_openssl: improve PKCS#12 load failure error message
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/openssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index b4fd38c13..e07202693 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -514,7 +514,9 @@ int cert_stuff(struct connectdata *conn, PKCS12_free(p12); if(SSL_CTX_use_certificate(ctx, x509) != 1) { - failf(data, SSL_CLIENT_CERT_ERR); + failf(data, + "could not load PKCS12 client certificate, OpenSSL error %s", + ERR_error_string(ERR_get_error(), NULL) ); goto fail; } |