Hi i try to setup IM Chat in a new cloud server with Ubuntu. i follow the tutorial here all when good until i run the last command (node index.js) to start the Node.js server.
node index.js
Results
/im/server/index.js:13
throw new Error('privateKey not found.')
^
Error: privateKey not found.
at Object.
this is my settings in config.js
module.exports = {
port: 3000,
is_hosted: false,
chat_server_key: "stringkey_blabla",
secure: true, // use ssl ?
privateKey: "./opt/psa/var/modules/letsencrypt/etc/archive/mydomain.com/privkey.pem", // path to private key ?
cert: "./opt/psa/var/modules/letsencrypt/etc/live/mydomain.com/cert.pem", // path to cert key ?
firebase: {
serverKey: "",
senderId: ""
},
redis: {
host: 'my.host.I.P',
port: 6379,
password: 'my_host_password'
}
};
i use plesk panel with Lets Encrypt for certificate, is that could be the problem that my certificate form is in *.pem and not in *.crt ????
Instant Messaging Settings
Provide your Node JS server: http://my.host.I.P:3000
Provide your Node JS server key: stringkey_blabla