We need to generate the server.crt and server.key files as these are the ssl certificate files used in the nodejs app. This needs to be generated every year. We can generate by opening the terminal and get into this directory. After that run the following command openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt It will ask onscreen questions like country, state etc, mention any dummy data. Once done then it will generate those files in the current folder. Then we need to restart the nodejs app