javascript - How can I add an SSL certificate to my already existing node.js server? -


i have node.js server made keystone.js, before launching need add ssl certificate. examples , tutorials i've seen add ssl certificate node.js server show how create new https server scratch.

i have entire application , api working off http, there simple way make work on https?

i'm not sure why think need without restarting application; it's pretty low cost thing do.

that said, simplest approach put nginx web server in front of it, , setup nginx server https endpoint , proxypass requests forward node process.


Comments