git clone https://github.com/sonnyyu/mtls-haproxy
cd mtls-haproxyhttps://github.com/sonnyyu/mtls-cert-manage
cd ~/mtls-cert-manage/pki/haproxycerts
cp server.pem ca.crt ~/mtls-haproxy/haproxy/etc/certscd ~/mtls-cert-manage/pki/clientcerts
cp * ~/mtls-haproxy/certsdocker-compose up -ddocker-compose down docker-compose down -vcd ~/mtls-haproxy/certs
curl --cert client1.crt --key client1.key --cacert ca.crt https://192.168.1.204
curl --cert-type P12 --cert client1.p12:p12pass --cacert ca.crt https://192.168.1.204cd ~/mtls-haproxy/certs
curl --cert client2.crt:cppass --key client2.key --cacert ca.crt https://192.168.1.204
curl --cert-type P12 --cert client2.p12:p12pass --cacert ca.crt https://192.168.1.204https://192.168.1.204