From caa55bc7914068ff23bdca89c7bbf59ea72811fb Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 26 Feb 2020 14:28:18 +0100 Subject: [PATCH] ssl_send_certificate_error(): Be more precise An invalid certificate is only one of the reasons why the certificate verification may fail. Sponsored by: Robert Klemme --- ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl.c b/ssl.c index c1a06613..54d36a0e 100644 --- a/ssl.c +++ b/ssl.c @@ -1689,7 +1689,7 @@ extern void ssl_send_certificate_error(struct client_state *csp) "HTTP/1.1 200 OK\r\n" "Content-Type: text/html\r\n" "Connection: close\r\n\r\n" - "

Invalid server certificate

Reason: "; + "

Server certificate verification failed

Reason: "; const char message_end[] = "\r\n\r\n"; char reason[INVALID_CERT_INFO_BUF_SIZE]; memset(reason, 0, sizeof(reason)); -- 2.39.2