#1  
Old 6th March 2012, 16:58
ppawcio ppawcio is offline
Junior Member
 
Join Date: Mar 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Openssl Question

A user sent me a .csr file and we have openssl installed. How can I create a certificate in openssl from the .csr file?
Reply With Quote
Sponsored Links
  #2  
Old 6th March 2012, 18:13
ppawcio ppawcio is offline
Junior Member
 
Join Date: Mar 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I should post more info, I created the original certificate using these commands:

mkdir /usr/share/ssl/certs/hostname.domain.com
cd /usr/share/ssl/certs/hostname.domain.com
(umask 077 && touch host.key host.cert host.info host.pem)
openssl genrsa 2048 > host.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert
...[enter *.domain.com for the Common Name]...
openssl x509 -noout -fingerprint -text < host.cert > host.info
cat host.cert host.key > host.pem
chmod 400 host.key host.pem

So if I want to renew, can i use these commands?

openssl req -new -x509 -nodes -sha1 -days 4650 -key host.key > host.cert
...[enter *.domain.com for the Common Name]...
openssl x509 -noout -fingerprint -text < host.cert > host.info
cat host.cert host.key > host.pem
chmod 400 host.key host.pem
Reply With Quote
  #3  
Old 7th March 2012, 18:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

You must take the CSR and go to a CA which then creates a trusted cert from it. If you don't care about browser warnings, you can use your self-signed cert.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installation/upgrade not working anymore on etch fireba11 Installation/Configuration 20 17th February 2010 16:05
perfect install but no ISPconfig provell Installation/Configuration 52 29th June 2009 23:33
Hostname question, and DNS question andrewfashion General 1 20th April 2009 14:30
How to upgrade to openssl 0.9.8g ? bogdan747 Installation/Configuration 3 11th March 2008 21:46
Unbearably slow access speeds CombatGod Installation/Configuration 5 30th May 2006 17:31


All times are GMT +2. The time now is 04:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.