LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2013, 08:59 PM   #1
ravindert
Member
 
Registered: Oct 2011
Posts: 68

Rep: Reputation: Disabled
renew self signed CA certificate in apache server


Hi All,

Can you please assist me here . I have self signed CA certificate installed on our one of the Linux server and that is going to be expired soon. So can you please let me know how i can renew this existing CA certificated without creating the new one. I have the old key for the CA certificate with which i have created it last time.

So kindly provide me the command to renew it.

Thanks in advance.
Ravinder

Last edited by ravindert; 09-07-2013 at 09:33 PM.
 
Old 09-08-2013, 12:43 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
I have self signed CA certificate installed on our one of the Linux server and that is going to be expired soon. So can you please let me know how i can renew this existing CA certificated without creating the new one.
you need to create a new certificate, although you can still use the old key.
Code:
openssl req -new -x509 -key old.key -out new_self_signed_cert.pem
for more info, see req(1)
 
1 members found this post helpful.
Old 09-08-2013, 05:11 AM   #3
ravindert
Member
 
Registered: Oct 2011
Posts: 68

Original Poster
Rep: Reputation: Disabled
Hi Berhanie,

Thanks for your reply.

Please let me know how i can extend this certificate to one year because currently this command is creating the new certificate with only one month expiry date.

Thanks
 
Old 09-08-2013, 06:19 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
hi, ravindert. you need to add the days option:
Code:
openssl req -new -x509 -key old.key -out new_self_signed_cert.pem -days 365

Last edited by Berhanie; 09-08-2013 at 06:20 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Verify return code: 19 (self signed certificate in certificate chain) tikit Linux - Server 1 04-10-2012 05:21 PM
how to create signed (not self signed) certificate for Apache ? dlugasx Linux - Server 4 12-16-2011 10:08 AM
ssl self signed certificate dreamer.redeemer Linux - Security 2 02-02-2008 11:31 PM
How to renew apache ssl certificate m2azer Linux - General 0 01-04-2008 11:26 AM
Apache 2.2.3 SSL ignores self-signed certificate nshewmaker Linux - Server 3 03-27-2007 06:18 PM


All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration