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

18 Replies, 1307 Views

"Node.js HTTPS test failing—anyone else facing this issue?"

Hey folks,

So I’m trying to run a nodejs https test locally, and it’s just *not* playing nice. I’ve got my server set up with a self-signed cert, but the test keeps throwing errors like "unable to verify the first certificate."

Anyone else run into this?

I’ve tried the usual—adding `rejectUnauthorized: false` in the options, but that feels hacky. Is there a *proper* way to handle this for testing? Or am I missing something obvious?

Also, if you’ve got a solid setup for a nodejs https test, drop your config! Would love to see how others are doing it.

Thanks in advance!

---

*(PS: Yes, I googled. No, the first 5 Stack Overflow answers didn’t help.)*

Messages In This Thread
[b]"How to properly set up a Node.js HTTPS test for secure connections?"[/b] or [b]"What's the best way to run a N - by - 15-06-2024, 01:13 PM



Users browsing this thread: 1 Guest(s)