MINOR: ssl: add ignore verify errors options
authorEmeric Brun <ebrun@exceliance.fr>
Fri, 21 Sep 2012 12:31:21 +0000 (14:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2012 06:32:50 +0000 (08:32 +0200)
commit81c00f0a7a148e2bdf6f7ffc2fda9c7cf8e233cc
treee0975d9ad96e39ee0b7bcbc8dbee9ba15b4afacf
parentb4354087ee4865c8c19072fa82f26a2409d635cc
MINOR: ssl: add ignore verify errors options

Allow to ignore some verify errors and to let them pass the handshake.

Add option 'crt-ignore-err <list>'
Ignore verify errors at depth == 0 (client certificate)
<list> is string 'all' or a comma separated list of verify error IDs
(see http://www.openssl.org/docs/apps/verify.html)

Add option 'ca-ignore-err <list>'
Same as 'crt-ignore-err' for all depths > 0 (CA chain certs)

Ex ignore all errors on CA and expired or not-yet-valid errors
on client certificate:

bind 0.0.0.0:443 ssl crt crt.pem verify required
 cafile ca.pem ca-ignore-err all crt-ignore-err 10,9
include/types/listener.h
src/ssl_sock.c