In order to try the content of the environment variable, I created a very small node script, as seen below:
var request = require("request");
request(
{ uri: "https://sonar.oe.wknet/about" },
function(error, response, body) {
console.log(body);
console.log(error);
}
);
I could see that as soon I removed the certificates from the pem file, the request fails:
{ Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
at TLSSocket.emit (events.js:198:13)
at TLSSocket._finishInit (_tls_wrap.js:636:8) code: ‘UNABLE_TO_GET_ISSUER_CERT_LOCALLY’
But if all certificates are stored in the pem file, I get a proper 200-OK HTTP Response with my node script.
So it is really hard to track down the issue for me