I am using nodejs https module with nginx proxy. I have multiple ssl certificate and I want to run all https sites using node without adding all certificates in nginx ssl server.
Is any way to proxy nodejs server to 443 port without adding certificates to nginx. all certificates are using inside nodejs https server.
I want,
var privateKey = fs.readFileSync('/myssl.key', 'utf8');
var certificate = fs.readFileSync('/myssl.crt', 'utf8');
var credentials = {key: privateKey, cert: certificate};
var server = express();
server.use(express.vhost('*', app));
var https = require('https');
https.createServer(credentials, express.vhost('*', app)).listen(8020);
here 8020 is proxying with nginx 443 port but nginx required ssl certificate but I want to run this ssl without adding it to nginx level.
or any other method I can use Please guide me its the wierd issue for me.Or any other way to use elastic load balancer for all ssl certificates.
Thanks in advance, Vijay