Skip to content

Instantly share code, notes, and snippets.

@thedod
Created July 4, 2012 04:25
Show Gist options
  • Save thedod/3045308 to your computer and use it in GitHub Desktop.
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 :)
#!/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