Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to auto add to hosts file? #6

Open
mikaelbr opened this issue Nov 14, 2017 · 0 comments
Open

Add option to auto add to hosts file? #6

mikaelbr opened this issue Nov 14, 2017 · 0 comments

Comments

@mikaelbr
Copy link
Collaborator

Opening for discussion: How about as a part of the process, you get asked (if dnsmasq service isn't running and it doesn't already exists) to add domain to hosts file?

Example flow:

▶ npx create-ssl-certificate --hostname myproject --domain test
npx: installed 1 in 3.764s

✔ Certificate for *.myproject.test created successfully!

Press any key to open Keychain Access, then:

  1. Double click added certificate and expand the "Trust" section
  2. Change to "Always trust" on first dropdown
  3. If your certificate is not there you can drag and drop "ssl.crt" from this folder into Keychain Access

Note! Make sure `myproject.test` is routed to localhost. More info: https://github.com/christianalfoni/create-ssl-certificate
? Whould you like to add it to hosts file? (yN) y

✔ Routed myproject.test to 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant