This project sets up a Docker environment with TLS. The application is a simple Node.js server that serves a static HTML page. The server is configured to use TLS.
Certificates can either be provided in the cert/server folder or will be generated automatically.
Generated certificates are self-signed by a CA that is also generated. The CA certificate is stored in the cert/ca folder. And can be added as a trusted CA to the client.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Docker
- Node.js
- Clone the repository
- Install dependencies with
yarn install
- Build the project with
yarn build
Build the Docker image with yarn docker:build
.
Start the Docker environment with yarn docker:start
.