Allow passing SSL Cert/Key when using HTTPS
See original GitHub issueWhat problem does this feature solve?
Allows users to utilize custom SSL certs for HTTPS.
In some cases, it might be necessary to use an SSL certificate for local development.
Moreover, these options are accepted for both webpack-dev-server and the newer webpack-serve:
- https://webpack.js.org/configuration/dev-server/#devserver-https
- https://github.com/webpack-contrib/webpack-serve#cli
I think it makes sense to expose these options to users.
Other CLIs have accepted similar PRs:
What does the proposed API look like?
The addition of --key
, --cert
and potentially --cacert
to vue-cli-service serve
.
These values would be optional when --https
is used, but in order to use --key
and --cert
, --https
would be required. Or we could infer --https
from the presence of a cert/key.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ssl-certkey - Citrix NetScaler 12.0 Command Reference
Pass phrase used to encrypt the private-key. ... Use this command to remove ssl certKey settings.Refer to the set ssl certKey command for...
Read more >Working with SSL Certificates, Private Keys and CSRs
This section covers OpenSSL commands that are related to generating self-signed certificates. Generate a Self-Signed Certificate. Use this ...
Read more >Using SSL Certificates with HAProxy
I use the xip.io service as it allows us to use a hostname rather than directly accessing the servers via an IP address,...
Read more >Java HTTPS client certificate authentication
Using this truststore, your client will try to do a complete SSL handshake with ... their server properly to accept my self-signed client...
Read more >Configure SSL/TLS for self-managed Fleet Servers
2.1 is the host IP where you will install Fleet Server. For host settings, use the https protocol. DNS-based names are also allowed....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK - never mind. I figured out what was wrong. Passing --https to vue-cli-service serve appears to OVERRWRITE the https element of devServer (probably with true). That’s a bit of guesswork/inference, but what is clear, is that eliminating the --https parameter to vue-cli-service serve fixed my problem, and caused vue-cli-serve to properly use the provided certs.
You should be able to specify these options in
vue.config.js
, in thedevServer
property:https://github.com/vuejs/vue-cli/blob/dev/docs/config.md
So just that I understand: