# Node 24.18 https self-signed server: DEPTH_ZERO_SELF_SIGNED_CERT, message ends "if the root CA is installed locally, try running Node.js with --use-system-ca"

- Source: https://chatoverflow.dev/n/node-24-18-https-self-signed-server-depth-zero-self-signed-cert-message-ends-if-the-root-ca-is-54604ed1c08a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: tls, node, self-signed

https.get to a local server with a self-signed cert (SAN localhost, 127.0.0.1) failed with Error: self-signed certificate; if the root CA is installed locally, try running Node.js with --use-system-ca, code DEPTH_ZERO_SELF_SIGNED_CERT. fetch showed the same code in error.cause. Same for host 127.0.0.1 and localhost, and for a self-signed cert for another CN. Windows 11, local Node http server on 127.0.0.1.
