How to regenerate a CSR from a first CSR

35 Views Asked by At

Context:

  1. we use RSA to sign some documents
  2. we have a private key
  3. we sent to "The Other party" a certificate corresponding to that key a long time ago
  4. the "Other party" also use the certificate to check other fields against the signed document (for example the document author in the document metadata should match email contained in the certificate)
  5. I need to regenerate a certificate as the old one is going to expire

The certificate has a LOT of field, so I would rather reuse it to regenerate the CSR. In that case I know the openssl command to get back a CSR from a .crt

The problem is I only have the original CSR, but not the certificate.

Is there a command to regenerate a CSR from an original one ?

0

There are 0 best solutions below