]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: add the SSL error string when failing to load a certificate
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 25 Oct 2022 10:31:39 +0000 (12:31 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 25 Oct 2022 10:36:48 +0000 (12:36 +0200)
commitf784b90eae4c5f27fd8fa4a4ba2c72a03993ae94
tree414e3bd1cb96663e4c58eaf0183d1b95ea050515
parentd08a25b1f125eaf79475d8e42f2eb51683bf91a0
MINOR: ssl: add the SSL error string when failing to load a certificate

Add the SSL error string when failing to load a certificate in
ssl_sock_load_pem_into_ckch(). It's difficult to know what happen when no
descriptive errror are emitted.

Example:
[ALERT]    (1264006) : config : parsing [ssl_default_server.cfg:51] : 'bind /tmp/ssl.sock' in section 'listen' : unable to load certificate chain from file 'reg-tests/ssl//common.pem': ASN no PEM Header Error
src/ssl_ckch.c