Can I modify a private key validity?

user1031431 picture user1031431 · Jul 29, 2014 · Viewed 13.2k times · Source

I'm a newbie in computer security and I have a basic question whose answer I've not been able to find out.

I have a private key whose validity period has expired. Using that key I'd previously generated a .csr and sent it to a CA and they'd given me a certificate that's still valid.

My question is, can I (using keytool or whatever...) modify the private key's expiration date in order to use it with my certificate (.cer). Could I regenerate a private key to be used with this certificate?

Thank you,

Answer

ntoskrnl picture ntoskrnl · Jul 29, 2014

No.

The validity period is in the certificate, not the private key. Certificates cannot be modified, and the only entities that can generate valid certificates are the certificate authorities.

You will have to pay for a new certificate. Certificate expiration is a safety measure, but also a way to get recurring customers.