Skip to content

Commit

Permalink
vtls_openssl: improve PKCS#12 load failure error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hall authored and bagder committed Apr 13, 2015
1 parent 27ac643 commit a471a9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/vtls/openssl.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit a471a9f

Please sign in to comment.