Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.11 KB

HTTPS.md

File metadata and controls

26 lines (21 loc) · 1.11 KB

How to generate self-signed certificates for develoment

Under Windows simply prefix all commands using winpty from Git Bash

Follow this guide:

openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
cp server.key server.key.org
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Certificate information:

  • Country Name (2 letter code) [AU]:FR
  • State or Province Name (full name) [Some-State]:Occitanie
  • Locality Name (eg, city) []:Castelnaudary
  • Organization Name (eg, company) [Internet Widgits Pty Ltd]:Weacast
  • Organizational Unit Name (eg, section) []:
  • Common Name (e.g. server FQDN or YOUR name) []:localhost
  • Email Address []:[email protected]
  • A challenge password []:
  • An optional company name []:

The weacast app follows Feathers guide to enable HTTPS and also similarly manages HTTPS on the client side when using Webpack in development.