Last active
December 27, 2016 10:08
-
-
Save kostyll/f4835607e75f29b35abcf571980a6449 to your computer and use it in GitHub Desktop.
generate_certs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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