Skip to content

Commit

Permalink
CORE-1395 - Fix up NodeJS example for TLS proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kochniev committed May 17, 2022
1 parent ad6b214 commit 4e5af35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content-by-language/node/outbound-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4e5af35

Please sign in to comment.