Create file server.crt
file along side with server.js
. Here's the code:
-----BEGIN CERTIFICATE-----
MIIDljCCAn6gAwIBAgIJAMkPpczHrXbcMA0GCSqGSIb3DQEBCwUAMA0xCzAJBgNV
BAYTAklEMB4XDTE5MDQyNzAyMTQyMVoXDTIwMDkwODAyMTQyMVowgawxCzAJBgNV
BAYTAlVTMRQwEgYDVQQIDAtSYW5kb21TdGF0ZTETMBEGA1UEBwwKUmFuZG9tQ2l0
eTEbMBkGA1UECgwSUmFuZG9tT3JnYW5pemF0aW9uMR8wHQYDVQQLDBZSYW5kb21P
cmdhbml6YXRpb25Vbml0MSAwHgYJKoZIhvcNAQkBFhFoZWxsb0BleGFtcGxlLmNv
bTESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEA8f+KjOlfnf8pYejo6PP7zEeAFDkz2A53UolVsqoOLHnl8vUU3m9FTfQx