mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 10:23:39 +02:00
MEDIUM: ssl: Add 'tune.ssl.ocsp-update.mode' global option
This option can be used to set a default ocsp-update mode for all certificates of a given conf file. It allows to activate ocsp-update on certificates without the need to create separate crt-lists. It can still be superseded by the crt-list 'ocsp-update' option. It takes either "on" or "off" as value and defaults to "off". Since setting this new parameter to "on" would mean that we try to enable ocsp-update on any certificate, and also certificates that don't have an OCSP URI, the checks performed in ssl_sock_load_ocsp were softened. We don't systematically raise an error when trying to enable ocsp-update on a certificate that does not have an OCSP URI, be it via the global option or the crt-list one. We will still raise an error when a user tries to load a certificate that does have an OCSP URI but a missing issuer certificate (if ocsp-update is enabled).
This commit is contained in:
committed by
William Lallemand
parent
b1d623949c
commit
7359c0c7f4
@@ -309,6 +309,7 @@ struct global_ssl {
|
||||
struct {
|
||||
unsigned int delay_max;
|
||||
unsigned int delay_min;
|
||||
int mode; /* default mode used for ocsp auto-update (off, on) */
|
||||
} ocsp_update;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user