ssl_send_certificate_error(): Be more precise
authorFabian Keil <fk@fabiankeil.de>
Wed, 26 Feb 2020 13:28:18 +0000 (14:28 +0100)
committerFabian Keil <fk@fabiankeil.de>
Fri, 28 Feb 2020 06:31:27 +0000 (07:31 +0100)
An invalid certificate is only one of the reasons
why the certificate verification may fail.

Sponsored by: Robert Klemme

ssl.c

diff --git a/ssl.c b/ssl.c
index c1a0661..54d36a0 100644 (file)
--- 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"
-      "<html><body><h1>Invalid server certificate</h1><p>Reason: ";
+      "<html><body><h1>Server certificate verification failed</h1><p>Reason: ";
    const char message_end[] = "</body></html>\r\n\r\n";
    char reason[INVALID_CERT_INFO_BUF_SIZE];
    memset(reason, 0, sizeof(reason));