Version
deno 2.5.6 (stable, release, x86_64-unknown-linux-gnu)
v8 14.0.365.5-rusty
typescript 5.9.2
Steps to reproduce
- Create file
test.mjs with the following content:
import tls from 'node:tls';
import fs from 'node:fs';
const certs = [fs.readFileSync('./certificate.pem', 'utf8')];
tls.setDefaultCACertificates(certs);
- Run the file like
deno -A test.mjs.
Expected Behaviour
The loaded certificate should be added as default in the current thread. There should be no output.
Actual Behaviour
error: Uncaught (in promise) TypeError: tls.setDefaultCACertificates is not a function