This method also applies to node.js and express These certificates help users identify that they are talking to the right server and send secure messages To enable the ssl within iis express, you have to just set “ssl enabled = true” in the project properties window
See the steps and pictures at this code project Localhost refused to connect error can be caused by an incorrectly configured port, insufficient permissions, or an inoperative web server. Iis express will generate a certificate for you (you'll be prompted for it, etc.).
Secure socket layer (ssl) or transport layer security (tls) provides a way for secure communication over the internet.