Generating CSR

Generate the CSR certificate in 2 steps:

1) Generate the private key with this command:
<br/>
openssl genrsa -out domainname.key 2048

(this will create the file domainname.key that contains the private key)

2) Generate the CSR from the private key, with this command:
<br/>
openssl req -new -key domainname.key -out domainname.csr

This command will ask several questions about your site. When it asks for CN (common name) put the host name for which your site will be accessed (used inthe browser address bar), for example: www.yourdomainname.com

After you've run the commands above, it will have generated 2 files: the private key and the CSR request. Please save these files, because you'll need it later. Actually, it's better that you save/upload it to your site's remote folder for later.