Skip to content

Commit 4bf71e0

Browse files
authored
Update README.md
1 parent 477d80b commit 4bf71e0

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ To redirect the http traffic to https use `app.redirect()`.
4040
You can also serve static files with `app.serve(path)`
4141

4242

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

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

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

64+
#### TL;DR
65+
Looking for something easier? Take a look to [mkcert](https://github.com/FiloSottile/mkcert) (requires Go).
66+
67+
Install it, then move into the https-localhost folder and run:
68+
```
69+
mkcert -install
70+
mkcert -cert-file cert/localhost.crt -key-file cert/localhost.key localhost
71+
```
72+
6473

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

0 commit comments

Comments
 (0)