Skip to content

Instantly share code, notes, and snippets.

View jcbohin's full-sized avatar

Jean-Christophe Bohin jcbohin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jcbohin on github.
  • I am jcbohin (https://keybase.io/jcbohin) on keybase.
  • I have a public key ASDeLOtYnubhNyIthR1VLzxnclMr5WlniRUFipZKD-gbNQo

To claim this, I am signing this object:

@jcbohin
jcbohin / gist:c2c01427d7d3e00cf10c7b26c787dab3
Created June 21, 2018 10:47
Generate certificate for localhost
openssl req -x509 -out localhost.crt -keyout localhost.key \
-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")