How do I generate a CSR Code.

July 12, 2015 6.1k views
DigitalOcean Ubuntu

Hi there, Please let my know how to create the CSR Code my domain that registered in namecheap and the ssl too.

I am using Ubuntu 14.04 x64 they asking Select web server and CSR Code.

Please help me to point my name to my ssl that hosted in Digital Ocean.

Note i already ( read this but i don't know how to use it.

Thanks in advance!

1 comment
  • Thanks for the Fast Response.

    I use Putty but after the Question (State, City) its come root@domainname again...

    Please Guide my i am new Here

    Thanks in Advance...

5 Answers

Welcome to the digitalocean community.

Allright so since you bought a Ubuntu droplet I believe you know how to manage a linux system. If you don't, please check out how to manage it first using WinSCP and Putty.

You can create a CSR code for an SSL certificate using putty. If you login to your droplet you can use the command in the other question to create a CSR in your current directory. So first of all go to a directory where you want to create the CSR. Use the following command for example:

cd /etc/ssl

If you want to create a new directory for your CSR you can use this for example:

mkdir /etc/ssl/websitessl

If you create a new directory, cd into it afterwards. Now you can create a CSR in there:

openssl req -new -newkey rsa:2048 -nodes -keyout domainname.key -out domainname.csr
```means you create a 2048bits csr. I recommend for more security to use ```rsa:4069```
You also need to change ```domainname.key```and ```domainname.csr``` into your own domain name so you can verify the CSR file. After you filled in all the legit information , you can open the new file using a client for example WinSCP, copy it, and use it for your SSL.

I hope this will help you, if not you can come back here and I'll be happy to help you.

No problem, if you got any more questions you can ask right here and I'll be happy to help.

P.S sorry for the weird answer in code syntax, answered threw my ipad

  • after i pasted my crs in my namecheap account shows..

    and how can i find my web server type

    The following error(s) occurred while getting approver email list
    We have detected that either a common name or one of the additional domain fields contain one of the following unsupported elements: an Internet-accessible IP Address, Internal Domain Name or a TLD we do not yet support. If you believe this is a mistake - please contact support. Thank you.

  • you can guide my step by step. please

If you like me to help you step by step for this, you can contact me on skype if you got it. Username:

If you dont have skype give me an output here what you do and what kind of error you get

  • Hey so I followed your instructions above and when I insert my CSR into the namecheap authentication it is supposed to auto-populate my primary-domain section after inserting it. However, it isn't doing this. Did perhaps do something wrong when generating my CSR?

  • hey plz help me how an i copy csr key after generating it

    • Hey @ph03n1x ,

      If you are using the SSH client Putty you can copy / paste it easily. First of all, make an output of the csr key:

      cat /etc/ssl/websitessl/domainname.csr

      It will give the complete CSR key in the client. Then just select it (with holding left mouse) and PuTTy will automatically copy it. You can just paste it in your browser after selecting.

      Hope this will help!

Have another answer? Share your knowledge.