-
Generate your express app with express generator :
express --git --hbs .
-
Create genSSL.sh :
touch genSSL.sh
-
Launch genSSL.sh:
chmod +x genSSL.sh
./genSSL.sh
-
Edit bin/www file with www file given in this gist.
-
Thanks : https://matoski.com/article/node-express-generate-ssl/