Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 856 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 856 Bytes

Local-SSL

Before you start, make sure to configure conf/app.conf to serve the proper endpoints and port or static content.

Step 1

Clone the repo cd into it.

git clone [email protected]:RayLuxembourg/local-ssl.git

cd local-ssl

Step 2

Generate your private key

mkdir ssl
openssl genrsa -des3 -out ssl/localhost.key 2048

And then generate the root certificate

openssl req -x509 -new -nodes -key ssl/localhost.key -sha256 -days 1825 -out ssl/localhost.pem

Step 3

Installing the root certificate

sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" ssl/localhost.pem

Step 4

Run your docker-compose file

docker-compose up -d

This will run a dockerized nginx instance and will load the conf/app.conf file as your nginx configuration