By Kelly Marvel
Hi there, I’m still kind of a huge noob to this. So I’ve created by own SSL certificate but I’d like to use one that’s been verified by a third party. However, this third party is requesting that I enter a CSR key. How do I go about generating one so I can incorporate a different SSL certificate? Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks guys. Now, how do I copy the CSR file to my desktop? Highlighting the text isn’t working on the console. Thanks
Thanks to ryanpq for the helpful answer ; I’d like to elaborate on the answer a bit.
To the totally uninitiated in Ubuntu, as I am:
You need to log into your Ubuntu server. First, I was trying to generate a csr from terminal on my PC, using ryanpq’s:
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
Indeed, doing it from my PC, I was prompted through the list of questions - country, name, etc - and I was told a csr was generated, but I couldn’t find it anywhere on my PC.
So, log into your server with ssh or whatever you use, where the csr will be hosted on. I don’t believe the csr generated on your PC is any use.
I used sudo -s to log in as a super user. on my server, giving me root access. I put in ryanpq’s command and answered the questions that followed - name, challenge password etc.
At the end of it all, I don’t think I got a confirmation that the csr had been generated, which would have been nice.
I typed : ls -a (which means show files in currently directory)
I saw one named mycompany.csr (my company being the actual name of my business) and typed:
cat mycompany.csr (which opens that file)
The csr file opens, displaying the csr password - everything between ‘BEGIN CERTIFICATE REQUEST’ and ‘END CERTIFICATE REQUEST’
After completing the questions you mentioned to provide the relevant details for your certificate this command would create a file called “yourdomain.csr” is your current directory that would have the signing request your certificate authority would need.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.