I'm trying to get HAproxy 1.5.x to trust any certificate authority already in the trust store of the machine (/etc/ssl/certs
) without having to explicitly specify the individual ca-file
root authority certificate to be trusted. I want to avoid the scenario of a given backend server using a certificate issued by a different authority and causing an outage because that backend server is no longer trusted--despite the CA being in the machine trust store.
Within a given backend
section of the haproxy.cfg
file, the server
line has an option called ca-file
. This option instructs HAproxy to verify the authority of the backend's server certificate using the authority provided. The trouble is that this points to a single CA.
I found the ca-base
option. Unless I'm mistaken, this is only a shortcut to avoid having to specify the full path of the ca-file
at each declaration.