- Jul 28, 2022
- 30
- 52
- 18
Does anyone know how to fix this below issue i have been trying from last 2 days and unable to fix it
server Panel - aaPanel
Node start - pm2 manager
i have followed the instructions provided from author and installed the panel , the panel is working perfectly but the qr code is not generating,when i access http:// mydomain. com:8000 the site is working as below
but when i open https:// mydomain. com:8000 the site is showing ERR_SSL_PROTOCOL_ERROR
i have updated all the ssl and forced the https but its not working , so i thought maybe http will we working so i used the http server itself in the WAMD server setting i.e http:// mydomain .com:8000 as expected the qr code generated successfully but it doesn't connected to whatsapp as it only accepts https connections
any workaround ?? previously who has successfully deployed this in aaPanel??
Kindly run the node server on https
And provide the privkey and certificate generated from aapanel as options
JavaScript:
const https = require('https');
const options = {
key: fs.readFileSync("./privkey.pem"),
cert: fs.readFileSync("./fullchain.pem"),
};
const server = https.createServer(options, app);