question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow passing SSL Cert/Key when using HTTPS

See original GitHub issue

What 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:

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:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
LewisPringlecommented, Feb 22, 2019

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.

4reactions
LinusBorgcommented, May 5, 2018

You should be able to specify these options in vue.config.js, in the devServer property:

https://github.com/vuejs/vue-cli/blob/dev/docs/config.md

So just that I understand:

  • Did you try this and it didn’t work?
  • or did you not know about it?
  • or did it work, but you just want these to be available as CLI arguments as well?
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found