I'm running a Node.js server using Socket.io to manage connections via Socket, however, I'm having a problem with SSL certificates. Most users can access the Node.js server normally, but others can not and do not get the following error:
When I configure my server, I have the following SSL options:
var privateKey = fs.readFileSync('/root/cert/key.key', 'utf8').toString();
var certificate = fs.readFileSync('/root/cert/cert.crt', 'utf8').toString();
var ca = fs.readFileSync('/root/cert/ca.crt').toString();
var credentials = { key: privateKey, cert: certificate, ca: ca };
var app = express();
var httpsServer = https.createServer(credentials, app);
var io = require('socket.io')(httpsServer);
Does anyone know how to resolve this error? What problem is the fact that only some users have this error.
Thank you in advance!