If you want an SSL certificate for https://secure.mywebsite.com
#Generate the key file
openssl genrsa -out secure.mywebsite.com.key 2048

#Generate the CSR from the key file
openssl req -new -key secure.mywebsite.com.key -out secure.mywebsite.com.csr