Skip to content

[proposal][node] Use system CA #1897

@sosoba

Description

@sosoba

Since its inception, nodejs has provided a built-in set of root certificates. Current versions of lines v22 and v24 allow to use system certificates:

docker run --rm -e NODE_USE_SYSTEM_CA=1 gcr.io/distroless/nodejs22-debian12 -e "console.log(await fetch('https://google.com').then(res=>res.statusText))"

OK

This works fine but the image size is increased by an unnecessary resource.

Would you consider building nodejs for the image without built-in certificates and with the setup of NODE_USE_SYSTEM_CA=1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions