webpack-dev-server
webpack-dev-server copied to clipboard
Automatically add hostname, specified in --public parameter, to self-signed certificate
- 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 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