Skip to content

node:tls does not implement setDefaultCACertificates #31208

@davidebombelli

Description

@davidebombelli

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

  1. 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);
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions