I have installed nodejs and ssl on my sever
and my app.js code
var sslOptions = {
key: fs.readFileSync(\'/etc/ssl/private/private.key\'),
cert:
Comment out the line where you add the ca bundle. Copy all the text from ca.crt and paste them in cert.com.crt(don't replace the previous cert, just paste under it). It should work fine now.
var sslOptions = {
key: fs.readFileSync('/etc/ssl/private/private.key'),
cert: fs.readFileSync('/etc/ssl/certs/cert.com.crt'),
requestCert: true,
//ca: fs.readFileSync('/etc/ssl/certs/ca.crt'),
rejectUnauthorized: false
};
var secureServer = https.createServer(sslOptions,app).listen(443, function(){
console.log("Express server listening on port ");
});