Skip to content

urre/localhttps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self signed SSL cert for local development

Setup

  1. Create a self signed SSL cert on macOS (stored in /certs)
  2. Trust the certificate in the macOS Keychain.
  3. Add/remove a vhost in /etc/hosts (nicedomain.local in this example)

./setup.sh to do everything above in order.

Note: Change to your own domain in create-cert.sh and trust-cert.sh

Run

  • Using docker-compose as a simple example and nginx-proxy for exposing both port 80 and 443 (optional)

docker-compose up to start

Notes

The cert will work in Chrome and Safari. Firefox doesn't trust certs in macOS Keychain any longer, since it is using it's own Certificate Manger. Import certs in Tools > Options > Advanced > Certificates: View Certificates

About

Use a self signed local SSL cert on macOS for local development

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages