git clone https://github.com/sonnyyu/mtls-haproxy
cd mtls-haproxy
https://github.com/sonnyyu/mtls-cert-manage
cd ~/mtls-cert-manage/pki/haproxycerts
cp server.pem ca.crt ~/mtls-haproxy/haproxy/etc/certs
cd ~/mtls-cert-manage/pki/clientcerts
cp * ~/mtls-haproxy/certs
docker-compose up -d
docker-compose down
docker-compose down -v
cd ~/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.204
cd ~/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.204
https://192.168.1.204