LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-10-2011, 10:07 AM   #1
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
Certificate expiration date questions


Hello There,

I setup a pure ftp server with TLS encryption, it all work fine for now.

But my question is about the certificate
I though I gave it a life time of 10 years, but when I check the expiration date it seems to expire in 30 days:
Code:
# openssl x509 -noout -in /etc/ssl/private/pure-ftpd.pem -dates
notBefore=Nov 10 15:16:36 2011 GMT
notAfter=Dec 10 15:16:36 2011 GMT
#
1. Does that mean that it will expire on the "Dec 10 15:16:36 2011 GMT"? Or only that it have to be recheck after that date?

2. How can I see the validity date of the certificate?

3. What will happen when the certificate will expire? Will the users still able to connect via TLS if I don't renew it in time?


As this server, is made to go in production soon, I do prefer to have the answer of these question before to get stuck and see all my users complaining.

Thank you for your help,
Angel.
 
Old 11-10-2011, 12:41 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

1. Yes it will expire on that date.
2. Using the same openssl command as you already did.
3. I guess it will continue to work, but it will show a warning to clients that the certificate has expired.

Regards
 
1 members found this post helpful.
Old 11-11-2011, 02:19 AM   #3
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Original Poster
Rep: Reputation: 79
Ok thanks a lot for these answer.

And how can I do to set the expiration date of the certificate at the creation?

As I've already put the default_crl_days and the default_days to 3650 in my /etc/ssl/openssl.cnf file.

Best regards,
Angel.
 
Old 11-11-2011, 02:52 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I don't use a openssl.cnf file, but rather a command like:
Code:
openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
Regards
 
1 members found this post helpful.
Old 11-11-2011, 03:01 AM   #5
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Original Poster
Rep: Reputation: 79
Quote:
Originally Posted by bathory View Post
Code:
openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
Good job, that works fine.

Thanks a lot,
Angel.
 
  


Reply



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
building exe with expiration date ?? vlyamtse Programming 5 04-01-2009 08:15 AM
Root password expiration date? abylin1 Linux - Security 1 01-28-2009 02:44 PM
Can I retrieve certificate expiry date from an openssl certificate (command line) davee Linux - Security 1 07-21-2006 10:28 AM
/etc/shadow expiration date liguorir Linux - Software 1 05-04-2004 02:42 PM
cookie expiration date in IE6 icepig Programming 2 11-17-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:35 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
Open Source Consulting | Domain Registration