US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > How-To Guides


Reply
 
Thread Tools
Old 08-31-2011, 11:46 PM   #1
Junior Member
 
Join Date: Dec 2010
Posts: 10
Sroek is on a distinguished road
Default I keep getting a "Certificate for CentOS has expired" in my email.

################# SSL Certificate Warning ################

Certificate for hostname 'centos.x.x', in file:
/etc/pki/tls/certs/localhost.crt

The certificate needs to be renewed; this can be done
using the 'genkey' program.

Browsers will not be able to correctly connect to this
web site using SSL until the certificate is renewed.

################################################## ########
Generated by certwatch(1)

I don't know how to resolve this. I've tried using genkey to do it and it'll show that it has been renewed, but this email keeps popping up.

Could anyone provide step by step instructions on how to resolve this issue? I would be tremendously grateful.
Sroek is offline   Reply With Quote
Old 09-01-2011, 06:05 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

Hello, this is CentOS (RHEL) related issue, use google for simple solution for it
http://www.google.com/search?sourcei...y'+program.

You should generate new cerificate pair via genconf program (or openssl program) and install it to /etc/pki/tls/certs/localhost.crt and /etc/pki/tls/private/localhost.key

Manual for genkey http://www.centos.org/docs/5/html/5....ratingkey.html

For OpenSSL use this commands

Quote:
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl rsa -in server.key -out signingkey.key
openssl x509 -in server.csr -out selfsigned_digicert.crt -req -signkey signingkey.key -days 3650
chmod 600 server.key
chmod 600 selfsigned_digicert.crt
cp server.key /etc/pki/tls/private/localhost.key
cp selfsigned_digicert.crt /etc/pki/tls/certs/localhost.crt

Last edited by slava; 09-01-2011 at 06:15 PM.
slava is offline   Reply With Quote
Old 09-02-2011, 08:40 AM   #3
Junior Member
 
Join Date: Dec 2010
Posts: 10
Sroek is on a distinguished road
Default

Thank you very much, sir!
Sroek is offline   Reply With Quote
Reply

Thread Tools

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


All times are GMT +2. The time now is 02:05 PM.