These are the steps you need to take to run this project in development mode.
Create the directories you will save the the certificates in:
$ mkdir ./client/certificates/ && mkdir ./client/certificates/server && mkdir ./client/certificates/root && cd ./client/certificates.
Generate an rsa private key for the root certificate:
$ openssl genrsa -out root/key.pem 2048
Generate the self-signed root certificate using the private key:
$ openssl req -x509 -new -nodes -key root/key.pem -sha256 -days 365 -out root/crt.pem
Generate a private key for the server:
$ openssl genrsa -out server/key.pem 2048
Generate a certificate signing request (CSR) using the server’s private key:
$ openssl req -new -key server/key.pem -out server/csr.pem
Sign the CSR with the root certificate to create the server certificate:
$ openssl x509 -req -in server/csr.pem -CA root/crt.pem -CAkey root/key.pem -CAcreateserial -out server/crt.pem -days 365 -sha256
Enter the project folder and run:
$ cd .. && sudo docker compose up
visit https://localhost:5173, your browser will show a warning just ignore it a select proceed from advanced options.