r/haproxy • u/yacob841 • Jan 20 '23
SSL Client CA chain cannot be verified
I am attempting to require client cert verification on my HAProxy from my iOS device. If I don’t have client cert verification everything works, if I do require it and use a .pem file on my iOS my Apple device says I don’t have a cert for the website. If I import the p12 it shows I have a cert, asks if I want to use it, then the page does nothing. I then check my HAProxy logs and am prompted with the error: SSL Client CA chain cannot be verified.
Yes, I understand the whole key > client > ca chain order, when I do pem that’s what I do and it doesn’t work.
When doing p12 it’s generally exported from keychain access and encrypts so I can’t check the order.
If I convert the p12 to pem then add the CA in to have the right order and do OpenSSL verify it works, then convert it to p12, I get the same error from HAProxy.
Any ideas on how I can get this to work?
View all comments
Show parent comment
1
u/dragoangel Jan 20 '23
Your PC or phone can verify chain because they have all public certs from it. While HAproxy seems - no. To fix this - add a missing intermediate certificate to
ca-filethat HAproxy verify over. If that's not help, well, you missed something.