https://github.com/sonnyyu/mtls-cert-manage
cd ~/mtls-cert-manage/pki
./server.sh
./client.shgit clone https://github.com/sonnyyu/mtls-apache
cd mtls-apachecd ~/mtls-cert-manage/pki/servercerts
cp * ~/mtls-apache/certs
cd ~/mtls-cert-manage/pki/clientcerts
cp * ~/mtls-apache/certs
cd ~/mtls-apache/certs
cp 192.168.1.204.crt 192.168.1.204.key ca.crt ~/mtls-apache/httpd/certscd ~/mtls-apache
docker-compose up -d cd ~/mtls-apache
docker-compose down cd ~/mtls-apache
docker-compose down -vcd ~/mtls-apache/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.204https://192.168.1.204