https://github.com/sonnyyu/mtls-cert-manage
cd ~/mtls-cert-manage/pki
./server.sh
./client.sh
cd ~/mtls-cert-manage/pki/servercerts
cp * ~/mtls-nginx/certs
cd ~/mtls-cert-manage/pki/clientcerts
cp * ~/mtls-nginx/certs
cd ~/mtls-nginx/certs
cp 192.168.1.204.crt 192.168.1.204.key ca.crt ~/mtls-nginx/nginx/certs
cd ~/mtls-nginx
docker-compose up -d --build
~/mtls-nginx
docker-compose down
~/mtls-nginx
docker-compose down -v
cd ~/mtls-nginx/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
https://192.168.1.204