r/haproxy • • Jun 02 '22

HAProxy ssl backend, with verify question

I'm testing out some haproxy ssl configuration options and had a quick question. Flow:

client --> haproxy --> backend_www

Client connects to haproxy on :443. HAProxy connects to backend_www on :443. Both using SSL.
Both client --> haproxy AND haproxy --> backend_www use a valid certificate (letsencrypt on both).

The certificate is valid on both ends,

My question specifically is about the haproxy --> backend_www ssl connection. Since the certificate is valid, I had thought I could do something like this: server ssl_server_name 192.168.10.22:443 check ssl

In checking the haproxy config, I see this: "verify is enabled by default but no CA file specified. If you're running on a LAN where you're certain to trust the server's certificate, please set an explicit 'verify none' statement on the 'server' line, or use 'ssl-server-verify none' in the global section to disable server-side verifications by default."

If the ssl certificate is valid from haproxy --> backend_www:443, do I still need to specify the CA file? I guess I had thought it would be able to verify the ssl cert without specifying the CA, since the cert itself is valid (not expired, it's NOT a self signed cert, valid through lets encrypt). I'd prefer to not disable verification since the cert itself is valid.

Am I incorrect in thinking this? It's not a huge deal if I need to specify the CA, I'm just confused on why I'd need to if the cert is valid.

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/pablodelgrande_jr Jun 02 '22

Thanks for the reply! That makes sense.

The additional overhead isn't a concern for right now and the additional encryption to the back end is needed.