ref: https://github.com/MichaelViveros/nginx-mutual-tls
instale as gems e rode no shell:
#!/bin/bash
bundle
mkdir nginx/certs
ruby generate_cert.rbIsso deve gerar os certificados de client, server e root.
Subir o container:
#!/bin/bash
docker-compose upEntre no Postman e faça uma chamada get em localhost:443 sem certificado Depois configure o certificado client para fazer chamadas em localhost:443.