From 4e5af35db8cba8475dd24721b3eac47ad5022e43 Mon Sep 17 00:00:00 2001 From: Sasha Kochniev Date: Tue, 17 May 2022 15:01:08 +0300 Subject: [PATCH] CORE-1395 - Fix up NodeJS example for TLS proxy --- content-by-language/node/outbound-integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content-by-language/node/outbound-integration.js b/content-by-language/node/outbound-integration.js index 0df0a4b..cac6779 100644 --- a/content-by-language/node/outbound-integration.js +++ b/content-by-language/node/outbound-integration.js @@ -4,9 +4,9 @@ const { curly } = require('node-libcurl') const certFilePath = '{CERT_LOCATION}' const ca = '/tmp/vgs-outbound-proxy-ca.pem' -const tlsData = tls.rootCertificates.join('\n') +const tlsData = tls.rootCertificates.join('\\n') const vgsSelfSigned = fs.readFileSync(certFilePath).toString('utf-8') -const systemCaAndVgsCa = tlsData+ '\n' + vgsSelfSigned +const systemCaAndVgsCa = tlsData+ '\\n' + vgsSelfSigned; fs.writeFileSync(ca, systemCaAndVgsCa) async function run() {