Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsdouges/sw-back-online
Playing with sw + web notifications.
https://github.com/itsdouges/sw-back-online
Last synced: 29 days ago
JSON representation
Playing with sw + web notifications.
- Host: GitHub
- URL: https://github.com/itsdouges/sw-back-online
- Owner: itsdouges
- Created: 2019-04-27T10:09:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T09:20:20.000Z (almost 3 years ago)
- Last Synced: 2024-10-02T08:43:30.670Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sw-back-online
## Generating a new ssl cert for local development
### Generate a new cert
```sh
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
1. Find freshly added `localhost` key, open it
1. Open `trust` section and mark `When using this certificate:` as `Trust always`