Using pyOpenSSL, can you extend the expiration of an existing self-signed certificate?

28 Views Asked by At

What I am trying to do:

  • If a certificate already exists in a specified directory, "clone" it but extend the expiration (not after) date.

My questions:

  • Do I need to do this process manually? Get all fields, extensions, attributes, etc, from the existing file and generate a new certificate with this info, then delete the old version?
  • Is there a method in this library to do this that I'm not seeing?
  • Do I need to generate a new private key when I do this, or will the existing key work with a new cert file?
0

There are 0 best solutions below