Node.js CLI Environment & Config/Add extra CA certificates

Trust additional certificate authorities.

Section: Environment Variables and NODE_OPTIONS

Add extra CA certificates

bash
bash
NODE_EXTRA_CA_CERTS=./internal-ca.pem node app.js
Explanation

Useful in enterprise environments with internal PKI.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Environment Variables and NODE_OPTIONS
Use system CA store
Load trusted CA certs from the OS store.
OpenIn sheetbashsame section
Preload with NODE_OPTIONS
Apply CLI flags through the environment.
OpenIn sheetbashsame section
Run with NODE_ENV=production
Set common production mode.
OpenIn sheetbashsame section
Suppress warnings
Disable warning output.
OpenIn sheetbashsame section
Set timezone
Run process in a chosen timezone.
OpenIn sheetbashsame section
Set libuv threadpool size
Tune worker threadpool size.
OpenIn sheetbashsame section