This little script will let you create an SSL CSR and key in one command. Be sure to change the C (country), ST (state), and L (locality) variables to fit your needs.

Call the script with the domain name you want to generate:


You could self-sign the CSR if you'd like as well:

$ openssl x509 -req -days 365 -in -signkey -out