From: Fabian Keil Date: Wed, 26 Aug 2020 20:17:59 +0000 (+0200) Subject: create_server_ssl_connection(): Improve the error message X-Git-Tag: v_3_0_29~178 X-Git-Url: http://www.privoxy.org/gitweb/trouble.html?a=commitdiff_plain;h=dd6cf7bc200b13da0532b39f22370ac7c9fa99c5;p=privoxy.git create_server_ssl_connection(): Improve the error message ... that is emitted when the certificate validation fails. Sponsored by: Robert Klemme --- diff --git a/openssl.c b/openssl.c index 0005ed5f..3cf65e5f 100644 --- a/openssl.c +++ b/openssl.c @@ -1093,8 +1093,9 @@ extern int create_server_ssl_connection(struct client_state *csp) else { csp->server_cert_verification_result = verify_result; - log_error(LOG_LEVEL_ERROR, "SSL_get_verify_result failed: %s", - X509_verify_cert_error_string(verify_result)); + log_error(LOG_LEVEL_ERROR, + "X509 certificate verification for %s failed: %s", + csp->http->hostport, X509_verify_cert_error_string(verify_result)); ret = -1; goto exit; }