Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Renew certificate with Java Keytool - reuse old CSR?

I have an SSL certificate in a Java keystore. It's going to expire in a week or so and I need to renew it.

Can I reuse the previous CSR (which the CA still have) and then import the certificate using the import command or do I need to generate a new CSR?

like image 990
Brian Beckett Avatar asked May 07 '10 09:05

Brian Beckett


People also ask

Can I use old CSR to renew certificate?

It is recommended that you generate a CSR each time you renew your old certificates. Though some web servers may allow you to use the old CSR, generating a new one takes care of incorporating new encryption methods and hashing algorithms into the new certificates.

Do I have to generate a new CSR to get my certificate renewed?

To renew an SSL/TLS certificate, you'll need to generate a new CSR. For more information about creating a CSR, see our Create a CSR (Certificate Signing Request) page. Best practices are to generate a new certificate signing request (CSR) when renewing your SSL/TLS certificate.

Can you reuse the same CSR?

The short answer is that while yes you can reuse the CSR, it doesn't mean you should. It's worth considering that encryption methods can improve over time (e.g., generating RSA keys @ 2048 or 4096 vs 1024 awhile back, sha256 vs.


1 Answers

You can (if your CA doesn't check for public key reuse), but it's a bad security practice. The primary purpose of the validity period is to limit the time in which a certificate and associated private key is exposed to the possibility of being compromised.

like image 52
bignum Avatar answered Sep 19 '22 11:09

bignum