node/test/fixtures/tls-get-ca-certificates-worker.js
2026-03-06 14:41:39 +00:00

10 lines
286 B
JavaScript

'use strict';
const tls = require('tls');
const { parentPort } = require('worker_threads');
parentPort.postMessage({
bundledLen: tls.getCACertificates('bundled').length,
systemLen: tls.getCACertificates('system').length,
defaultLen: tls.getCACertificates('default').length,
});