webpack-dev-server icon indicating copy to clipboard operation
webpack-dev-server copied to clipboard

Automatically add hostname, specified in --public parameter, to self-signed certificate

Open mrigne opened this issue 7 years ago • 1 comments

  • Operating System: any
  • Node Version: any
  • NPM Version: any
  • webpack Version: 4.28.4
  • webpack-dev-server Version: 3.1.14
  • [ ] This is a bug
  • [x] This is a modification request

Code

  // webpack.config.js

Expected Behavior

In generated certificate DNS with hostname from --public present

Actual Behavior

Only predefine localhost names are present

For Bugs; How can we reproduce the behavior?


For Features; What is the motivation and/or use-case for the feature?

To allow add trusted CA for self-signed certificate one time to comfortable work with new generated certs

mrigne avatar Jan 24 '19 12:01 mrigne

@mrigne it is impossible, because each os have own algorithm for DNS resolving and it is out of scope package. You can use before/after options to do this

alexander-akait avatar Jan 24 '19 12:01 alexander-akait