Skip to content

Instantly share code, notes, and snippets.

@kostyll
Last active December 27, 2016 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kostyll/f4835607e75f29b35abcf571980a6449 to your computer and use it in GitHub Desktop.
Save kostyll/f4835607e75f29b35abcf571980a6449 to your computer and use it in GitHub Desktop.
generate_certs.sh
#!/bin/bash
mkdir -p keys
openssl \
req -x509 -sha256 -nodes -days 365 \
-newkey rsa:2048 -keyout keys/server.key -out keys/server.crt
openssl \
req -new -x509 -keyout keys/server.pem \
-out keys/server.pem -days 365 -nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment