]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tls_ctx_load_ca: Improve certificate error messages
authorKlee Dienes <klee@mit.edu>
Sat, 6 Jul 2013 21:00:02 +0000 (17:00 -0400)
committerGert Doering <gert@greenie.muc.de>
Fri, 15 Nov 2013 16:20:36 +0000 (17:20 +0100)
commit2f3c65f352086b557a5a9dcf2b54eda08a7962f8
tree215442596b729a769f78f3b35224080f61daf261
parentca2c4a9da769ceefd7e79829362ed054f667536b
tls_ctx_load_ca: Improve certificate error messages

If a CA certificate file includes intermediate certificates, and any
of them fail to verify, the current code will file with "Cannot load
CA certificate file".  Instead, generate a more specific error message
identifying the specific sub-certificate(s) which did not validate.

Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <CAK6ywbLVtSgRZEt4N+02fz+vQ0GNp==5KdsbqWtZ+fgUzrZq+g@mail.gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7837

Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 9927cdbd929bebbba0d15bb9a6b03453891a485b)
src/openvpn/ssl_openssl.c