Skip to content

RayLuxembourg/local-ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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

About

Run local SSL with http2 using docker with nginx

Resources

License

Stars

Watchers

Forks

Packages