How to properly set up a Node.js HTTPS test for secure connections? or What's the best way to run a N

18 Replies, 1601 Views

Hey! Had the same issue last week. Turns out the self-signed cert wasn’t being trusted by Node. You gotta add it to the trusted certs manually.

Try this:
```bash
export NODE_EXTRA_CA_CERTS=/path/to/your/cert.pem
```
Then run your nodejs https test again. Works like a charm for me.

If you’re on Windows, you might need to tweak the env vars differently. Lmk if you need help with that!

Messages In This Thread



Users browsing this thread: 1 Guest(s)