1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

vtls_openssl: improve PKCS#12 load failure error message

This commit is contained in:
Matthew Hall 2015-03-24 17:36:32 -07:00 committed by Daniel Stenberg
parent 27ac643455
commit a471a9f3b6

View File

@ -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;
}