What happens when an openssl certificate expires?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

What happens when an openssl certificate expires?

Post by mecha_godzilla »

For an application I'm working on I created a script that would generate an openssl key pair and then encrypt the decryption key with the user's password and some other information and save the encryption key on the server.

As I understand it, the openssl.cnf file on the server is used to set the expiry date of the certificate (IE 365 days from the date of creation, or whatever) but what happens when the certificate expires? Will PHP still allow the key pair to be used or will I get some horrible FATAL error when I'm least expecting it? :mrgreen:

Thanks in advance,

Mecha Godzilla
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: What happens when an openssl certificate expires?

Post by Mordred »

What happens when you (DUN DUN DUN *dramatic music*) ... try it?
Post Reply