Before you can get SSL certificate for your web site, you need to create Certificate Signing Request (CSR).
Information needed for generating CSR
Country Name (2 letter code): State or Province Name: Locality Name (eg, city): Organization Name (eg, company): Email Address:
Most hosting control panel provide GUI for generating CSR.
If you are on a server with no control panel, you can generate CSR on any Linux computer by running
openssl req -new -newkey rsa:2048 -nodes -out domain-name.csr -keyout domain-name.key -subj "/C=COUNTRY-CODE-HERE-2-LETTER/ST=STATE-HERE/L=CITY-HERE/O=BUSINESS-NAME-HERE/OU=Retail/CN=domain-name"
If you want OpenSSL ask for information, run following command.
openssl req -new -newkey rsa:2048 -nodes -keyout domain-name.key -out domain-name.csr
boby@hon-pc-01:~ $ openssl req -new -newkey rsa:2048 -nodes -keyout hostonnet.com.key -out hostonnet.com.csr Generating a 2048 bit RSA private key ....................................+++ ..............................................+++ writing new private key to 'hostonnet.com.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:IN State or Province Name (full name) [Some-State]:Kerala Locality Name (eg, city) :Kochi Organization Name (eg, company) [Internet Widgits Pty Ltd]:HOSTONNET Organizational Unit Name (eg, section) :Retail Common Name (e.g. server FQDN or YOUR name) :hostonnet.com Email Address :email@example.com Please enter the following 'extra' attributes to be sent with your certificate request A challenge password :hostonnet An optional company name : boby@hon-pc-01:~ $
To view CSR details, run
openssl req -in domain-name.csr -noout -text