http-server icon indicating copy to clipboard operation
http-server copied to clipboard

Option to use devcert for local development SSL

Open joshkel opened this issue 4 years ago • 2 comments

What's the problem this feature will solve?

Configuring self-signed SSL certificates can be tedious.

Describe the solution you'd like

The devcert package is a popular Node.js package for automatically configuring a trusted, self-signed certificate. http-server could offer a --devcert option (or similar) that would use the devcert package to configure its SSL.

I assume that http-server wouldn't want to always pull in devcert as a dependency (for example, it would be undesirable on a production host), so it should check if devcert is present and cleanly handle things if it isn't?

Alternative Solutions

Manually configure SSL, as described in http-server's README.

Additional context

I can submit a PR if this seems like it's worth doing.

joshkel avatar Nov 09 '21 20:11 joshkel

While I'm always hesitant to expand the scope of http-server, HTTPS development is obviously important, so I'd be open to seeing what a PR for this would look like!

thornjad avatar Dec 06 '21 20:12 thornjad

This issue has been inactive for 180 days

github-actions[bot] avatar Jun 05 '22 12:06 github-actions[bot]