Skip to content

Instantly share code, notes, and snippets.

@vikpe
Created June 11, 2022 13:48
Show Gist options
  • Save vikpe/f3c05cf33a2370ae5703eeb15647a628 to your computer and use it in GitHub Desktop.
Save vikpe/f3c05cf33a2370ae5703eeb15647a628 to your computer and use it in GitHub Desktop.
Generate a selfsigned key and cert
openssl genrsa -out server.key 2048
openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment