I have a nodeJs app, and have this code on localhost:
const options = {
key: fs.readFileSync('privkey.pem'),
cert: fs.readFileSync('cert.pem'),
rejectUnauthorized: false,
requestCert: true,
};
this.server = https.createServer(options, app);
on api I have=> console.log((req.socket as TLSSocket).getPeerCertificate())
to make api request I use Insomnia I go "MANAGE CERTIFICATE" and "ADD CLIENT CERTIFICATE", I add:
Host: localhost,
Certificate: file,
key: key.
and make test,
then I call https://localhost
ORT, and my api show certificate,
I upload to my server, and use openlitespeed and make configuration, I go "MANAGE CERTIFICATE" and "ADD CLIENT CERTIFICATE", I add:
Host: api.company.com,
Certificate: file,
key: key.
and make test,
then I call https://api.company.com, and my api show {}, then openlitespeed don't send certificate,
On virtual Host > External App > Address = https://localhost
ORT
if I call on browser https://api.company.com is working and show certificate
Someone have Idea how solve problem?
const options = {
key: fs.readFileSync('privkey.pem'),
cert: fs.readFileSync('cert.pem'),
rejectUnauthorized: false,
requestCert: true,
};
this.server = https.createServer(options, app);
on api I have=> console.log((req.socket as TLSSocket).getPeerCertificate())
to make api request I use Insomnia I go "MANAGE CERTIFICATE" and "ADD CLIENT CERTIFICATE", I add:
Host: localhost,
Certificate: file,
key: key.
and make test,
then I call https://localhost
I upload to my server, and use openlitespeed and make configuration, I go "MANAGE CERTIFICATE" and "ADD CLIENT CERTIFICATE", I add:
Host: api.company.com,
Certificate: file,
key: key.
and make test,
then I call https://api.company.com, and my api show {}, then openlitespeed don't send certificate,
On virtual Host > External App > Address = https://localhost
if I call on browser https://api.company.com is working and show certificate
Someone have Idea how solve problem?