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

When using https display https://common_name:8080/ as one of the valid hostnames

Open bramp opened this issue 4 years ago • 3 comments

This is a feature request, to display the valid SSL name (from the certificate) when starting up the server.

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

$ http-server -S

Starting up http-server, serving ./ through https
Available on:
  https://127.0.0.1:8080
  https://192.168.77.123:8080

What did you expect to happen?

$ http-server -S

Starting up http-server, serving ./ through https
Available on:
  https://127.0.0.1:8080
  https://192.168.77.123:8080
  https://the_name_in_cert.pem:8080

If the issue is a feature request, what is the motivation / use case for it?

To make it easier to:

  1. You are using the correct SSL cert
  2. Easier to click though to a URL that has the valid cert. Both 127.0.0.1 and 192.168.77.123 would display certificate errors.

Tell us about your environment

  • exact http-server version: http-server v0.12.3
  • Node version: Node.js v15.5.0.
  • Platform: MacOs

Other information (related issues, suggestions for a fix, etc):

bramp avatar Dec 27 '20 19:12 bramp

An option to set the hostname would also work :)

sirajulm avatar Jan 06 '21 07:01 sirajulm

Has there been a PR fixing this issue yet? If not, can I be assigned to solve this?

Bruce-Hopkins avatar Dec 25 '21 07:12 Bruce-Hopkins

This issue has been inactive for 180 days

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