itsdouges / sw-back-online

Playing with sw + web notifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sw-back-online

Generating a new ssl cert for local development

Generate a new cert

openssl req -x509 -out test/cert.pem -keyout test/key.pem \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

From https://letsencrypt.org/docs/certificates-for-localhost/

Trust cert locally (OSX)

  1. Double-click cert.pem to add to Keychain Access
  2. Find freshly added localhost key, open it
  3. Open trust section and mark When using this certificate: as Trust always

About

Playing with sw + web notifications.


Languages

Language:JavaScript 84.9%Language:TypeScript 9.7%Language:HTML 5.4%