Skip to content

✨ Optionally set NODE_EXTRA_CA_CERTS globally #12

Description

@bdsoha

Optionally set the NODE_EXTRA_CA_CERTS environment variable to the point to the created bundle.crt.

This will fix errors similar to:

FetchError: request to https://****** failed, reason: unable to verify the first certificate
     at ClientRequest.<anonymous> (/usr/local/lib/***)
     at ClientRequest.emit (node:events:513:28)
     at TLSSocket.socketErrorListener (node:_http_client:502:9)
     at TLSSocket.emit (node:events:525:35)
     at emitErrorNT (node:internal/streams/destroy:151:8)
     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions