Bug Description
If you need to add a custom CA, you seem to have 3 possible solutions, but only the 3rd (not recommended) worked for me.
For solution 1 and 2 i have placed my custom CA certificate at the according locations.
- --use-openssl-ca
- NODE_EXTRA_CA_CERTS
- NODE_TLS_REJECT_UNAUTHORIZED
Reproducible By
Place your custom CA certificate at the according locations.
Try solution 1 or 2 and fetch() to an endpoint with an certificate which was signed by an unknown CA.
The following "unprecise" error message will be thrown: TypeError: fetch failed
Expected Behavior
fetch() should use the same "custom CA search paths" like node itself
Environment
node v18.17.0
Ubuntu 22.04
Bug Description
If you need to add a custom CA, you seem to have 3 possible solutions, but only the 3rd (not recommended) worked for me.
For solution 1 and 2 i have placed my custom CA certificate at the according locations.
Reproducible By
Place your custom CA certificate at the according locations.
Try solution 1 or 2 and fetch() to an endpoint with an certificate which was signed by an unknown CA.
The following "unprecise" error message will be thrown: TypeError: fetch failed
Expected Behavior
fetch() should use the same "custom CA search paths" like node itself
Environment
node v18.17.0
Ubuntu 22.04