Skip to content

whaaaley/sse-push-notification-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

push-notificaton-demo

Generate Certificates

From node.js documentation https://nodejs.org/api/http2.html#http2_server_side_example

openssl req -nodes -sha256 -x509 \
  -newkey rsa:2048 \
  -subj '/CN=localhost' \
  -keyout localhost-key.pem \
  -out localhost-cert.pem

From Let's Encrypt https://letsencrypt.org/docs/certificates-for-localhost/

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

Human readable version of the extensions config:

[dn]
CN=localhost

[req]
distinguished_name = dn

[EXT]
subjectAltName=DNS:localhost
keyUsage=digitalSignature
extendedKeyUsage=serverAuth

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors