Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinoaldo committed Jan 25, 2019
1 parent 477d80b commit 4bf71e0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ To redirect the http traffic to https use `app.redirect()`.
You can also serve static files with `app.serve(path)`


### [Optional/Linux] Install and trust the certificate
After `npm install` will run a script that tries to install and validate automatically the certificate.
**Actually works only on MacOS.**
### [Optional] Install and trust the certificate
**If you are not on MacOS or Ubuntu, you should follow this instructions.**

However, this script is in beta and provided as-is, so there isn't any guarantee that will work.
After `npm install` will run a script that tries to install and validate automatically the certificate.
However, this script is in beta and provided as-is, so there isn't any guarantee that will work.
For that reason you can also install the certificate manually, as follows.

If you decide to not install it, it's fine, the package still work.
Expand All @@ -61,6 +61,15 @@ menu and select the file. Then double-click on the certificate and select always
Depending on your Linux distribution, you can use `trust`, `update-ca-certificates`
or another command to mark the generated root certificate as trusted.

#### TL;DR
Looking for something easier? Take a look to [mkcert](https://github.com/FiloSottile/mkcert) (requires Go).

Install it, then move into the https-localhost folder and run:
```
mkcert -install
mkcert -cert-file cert/localhost.crt -key-file cert/localhost.key localhost
```


### License
[AGPL-3.0](LICENSE)

0 comments on commit 4bf71e0

Please sign in to comment.