This repository aims to provide a simple placeholder to test the validity and functionality of your HTTPS settings.
This project was made and tested on a system running Linux, specifically Ubuntu 18.04 LTS. Other operating systems should work fine, but feel free to open an issue if you find any bugs.
git clone https://github.com/DF1229/express-https
npm install
Locate and update the sslcert/key.pem
and sslcert/cert.pem
files accordingly.
Need help generating an SSL certificate? See https://certbot.eff.org
node index.js
Console output should look like this:
HTTP:80 LISTENING
HTTPS:443 LISTENING
At this point your site should be reachable through any webbrowser, just make sure to enter your configured IP-address or domain.
Make sure you have opened port 443 (HTTPS) in your firewall and/or router.
For more on how to do this on Linux, see this tutorial by DigitalOcean on the topic.