This repository is made to test client tls authentication.
You will need docker and openssl installed on your machine.
You must have a certificate for your server: (it can be self signed*)
HTTP_TLS_CERTIFICATE=path/to/certificate.crt
HTTP_TLS_KEY=path/to/certificate.key
* Generate self signed certificate: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx.key -out nginx.crt
- Generate a certificate authority:
./gen-master
- Generate client key/certificate:
./gen-cert
- Add the generated client key (cert/client/client.p12) on your browser.
./run