► Manage Account

Portal Home > Knowledgebase > SSL Certificates > Support Documents > Generate a Certificate Signing Request (CSR): Linux Apache


Generate a Certificate Signing Request (CSR): Linux Apache




Generate a Certificate Signing Request (CSR) for Apache

 

# openssl req -new -newkey rsa:2048 -nodes -keyout www.yourdomain.com.key -out www.yourdomain.com.csr
Enter pass phrase for www.yourdomain.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) [GB]:CA
State or Province Name (full name) [Berkshire]:Alberta
Locality Name (eg, city) [Newbury]:Calgary
Organization Name (eg, company) [My Company Ltd]:DOMAINScanada Inc
Organizational Unit Name (eg, section) []:IT
Common Name (eg, your name or your server's hostname) []: DOMAINScanada
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

# ls -ltr www.domain.*
-rw-r--r-- 1 root root   963 Jun 13 20:26 www.yourdomain.com.key
-rw-r--r-- 1 root root   664 Jun 13 20:35 www.yourdomain.com.csr


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read