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, 1576 Views

For local dev, I use `http-server` with the `--ssl` flag. Super simple:

```bash
npx http-server --ssl --cert cert.pem --key key.pem
```

No need to write custom nodejs https test code. Just point your tests at it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)