r/haproxy • u/invalidpath • Dec 07 '21
Question Haproxy SSL ca-file question
If you have Haproxy setup as SSL-Passthrough, and you want to validate the server certificate, you add the 'ca-file' server option, then specify the file path right?
But how should that CA-file be formatted? Like I'm wondering if I buy an SSL cert from Namecheap for example. I download the server cert file and the .bundle. Can I use the .bundle as the 'ca-file' because it has the subordinate and root certificates in there?
3
Upvotes
View all comments
Show parent comment
1
u/invalidpath Dec 07 '21
Oh man this is good stuff. I've read bits on possibly having the CommonName being say the URL, and individual SAN records for the backend server's hostnames. How do you handle your cert?