diff options
Diffstat (limited to 'example/README.md')
-rw-r--r-- | example/README.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/example/README.md b/example/README.md index e62c301..1db3bc5 100644 --- a/example/README.md +++ b/example/README.md @@ -12,13 +12,15 @@ Websites that wish to leverage WebAuthn _must_ be served over HTTPS, **including Here's one technique for setting up SSL for a local dev instance: -1. Create a `dev` A-record in `yourdomain.com`'s DNS settings that points to `127.0.0.1` -2. Use EFF's [certbot](https://certbot.eff.org/) locally to generate a .crt and .key for that `dev` subdomain -3. Update `key` and `cert` passed into `https.createServer()` to point to your custom certificates +1. [Install mkcert](https://github.com/FiloSottile/mkcert#installation) as per its instructions +2. Run `mkcert -install` to initialize mkcert +3. Generate SSL certificates for localhost: + +> ./example/ $> **mkcert -key-file localhost.key -cert-file localhost.crt localhost** ## Instructions 1. Set up your SSL certificates as above 2. Install dependencies with `npm install` 3. Start the server with `npm start` -4. Navigate to `https://dev.yourdomain.com` +4. Navigate to https://localhost |