Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 'revoke-renewed' #547

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Introduce 'revoke-renewed' #547

merged 1 commit into from
Apr 27, 2022

Conversation

TinCanTech
Copy link
Collaborator

When easyrsa "renews" a certificate, the current certificate is moved
to a sub-directory for renewed certificates and renamed to the serial
number of the certificate.

This makes it difficult to subsequently revoke the old certificate.

The new behaviour is for easyrsa to move the certificate without
renaming the file. This means the certificate can be revoked by name.

Once a renewed certificate is revoked, it is moved to the 'revoked'
sub-directory, along with all other revoked certificates.

The same mechanism also manages keys, requests, PKCS and inline files.

Behaviour summary:

  • revoke moves certificates to 'revoked' - Unchanged
    Rename the certificate to its serial number - Unchanged

  • renew moves certificates to 'renewed' - Unchanged
    renew does not rename the certificate to its serial number - Changed

    Important:
    Only one certificate of a specific name (eg. john) can be renewed
    at the same time.
    To renew another certificate called 'john' the first MUST be revoked.

  • revoke-renewed:
    takes the certificate from 'renewed' - Changed
    moves the certifiate to 'revoked' - Changed
    renames the certificate to its serial number - Unchanged

  • All revoked certificates are moved to the 'revoked' sub-directory.

Signed-off-by: Richard T Bonhomme tincantech@protonmail.com

When easyrsa "renews" a certificate, the current certificate is moved
to a sub-directory for renewed certificates and renamed to the serial
number of the certificate.

This makes it difficult to subsequently revoke the old certificate.

The new behaviour is for easyrsa to move the certificate without
renaming the file.  This means the certificate can be revoked by name.

Once a renewed certificate is revoked, it is moved to the 'revoked'
sub-directory, along with all other revoked certificates.

The same mechanism also manages keys, requests, PKCS and inline files.

Behaviour summary:

* revoke moves certificates to 'revoked' - Unchanged
  Rename the certificate to its serial number - Unchanged

* renew moves certificates to 'renewed' - Unchanged
  renew does not rename the certificate to its serial number - Changed

  Important:
  Only one certificate of a specific name (eg. john) can be renewed
  at the same time.
  To renew another certificate called 'john' the first MUST be revoked.

* revoke-renewed:
  takes the certificate from 'renewed' - Changed
  moves the certifiate to 'revoked' - Changed
  renames the certificate to its serial number - Unchanged

* All revoked certificates are moved to the 'revoked' sub-directory.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech TinCanTech self-assigned this Apr 27, 2022
@TinCanTech TinCanTech added Full-Approval Merge is imminent Priority Acknowledged priority BUG-FIX labels Apr 27, 2022
@TinCanTech TinCanTech added this to the v3.1.0 milestone Apr 27, 2022
@TinCanTech TinCanTech merged commit 590c978 into OpenVPN:master Apr 27, 2022
@TinCanTech TinCanTech deleted the revoke-renewed branch May 20, 2022 10:55
@TinCanTech
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG-FIX Full-Approval Merge is imminent Priority Acknowledged priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant