@@ -40,11 +40,11 @@ To redirect the http traffic to https use `app.redirect()`.
4040You 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.
4848For that reason you can also install the certificate manually, as follows.
4949
5050If 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 `
6262or 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