Created
July 4, 2012 04:25
-
-
Save thedod/3045308 to your computer and use it in GitHub Desktop.
Generate ssl key and csr. Short script, but I keep forgetting the syntax :)
This file contains hidden or 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/sh | |
mkdir $1 | |
cd $1 | |
touch $1.key | |
chmod 600 $1.key | |
openssl genrsa -out $1.key 2048 | |
openssl req -new -key $1.key -out $1.csr | |
more $1.csr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment