Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 907 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 907 Bytes

Description

This project demos :

  1. Generating Certificates
    1. Creating root and intermediate CA
    2. Generating Leaf CSR and signing them
  2. Setting up nginx
    1. to terminate SSL
    2. requesting client certificates
    3. passing client certificate dn to an upstream

Pre Requisite

  • You will need docker installed on your system to get started

Setup

starting server

  • execute docker compose up

making request

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"