Once you have node.js installed on your system, you can just follow the procedure below to get a basic web server running with support for both HTTP and HTTPS!
mkdir conf
cd conf
ca.cnf
file to use as a configuration shortcut :wget <https://raw.githubusercontent.com/anders94/https-authorized-clients/master/keys/ca.cnf
>
openssl req -new -x509 -days 9999 -config ca.cnf -keyout ca-key.pem -out ca-cert.pem
ca-key.pem
and ca-cert.pem
, let’s generate a private key for the server :openssl genrsa -out key.pem 4096
server.cnf
file to use as a configuration shortcut :wget <https://raw.githubusercontent.com/anders94/https-authorized-clients/master/keys/server.cnf
>