How can we add SSL certificate for the Node-RED server?
Literally the first result...
The default settings.js has everything you need, you just need to uncomment some stuff and put in the location of your certificate and private key pem files.
The following page on my blog should point you in the right direction:
It doesn't just show you how to get certs but also how to configure Node-RED and some other things.