Make sure sure you have acquired the SSL Certificate , and copy in the following directory ./config /sslcertificate/
Rename certificate file as described below : privateKey: key.txt', certificate: certificate.txt’, ca: magoware.ca-bundle.txt’
Change in production mode - File server.js
Run the server using : sudo node server.js and will automatically switch to https
By default the server will run on port 443 which is the one used for running https server, so make sure the port is not busy with other services.