This project demos :
- Generating Certificates
- Creating root and intermediate CA
- Generating Leaf CSR and signing them
- Setting up nginx
- to terminate SSL
- requesting client certificates
- passing client certificate dn to an upstream
- You will need
docker
installed on your system to get started
- execute
docker compose up
curl -vvvv \
--cacert gateway/output/cert/caCert.pem \
--cert gateway/output/cert/user_fullchain.pem \
--key gateway/output/cert/user.key \
"https://localhost:8443"
Wiremock backend is deployed at /upstream
, it can be reached at:
curl -vvvv \
--cacert gateway/output/cert/caCert.pem \
--cert gateway/output/cert/user_fullchain.pem \
--key gateway/output/cert/user.key \
"https://localhost:8443/upstream/some/thing"