OpenVPN / easy-rsa

easy-rsa - Simple shell based CA utility
Other
4.02k stars 1.19k forks source link

Use of `revoke` when `revoke-expired` is intended #1167

Closed TinCanTech closed 3 months ago

TinCanTech commented 3 months ago

Accidental use of revoke, when revoke-expired is intended, leads to revoking the wrong certificate.

This accidental use is caused as follows:

An annoying and insidious trap!

The solution appears to be: ~Prohibit~ Warn and get confirmation for use of revoke alice, while an expired certificate for alice is still present in the expired directory.

Possibly create command revoke-issued, to complement revoke-expired and revoke-renewed, and force use of revoke into choosing which type of certificate is intended to be revoked, when multiple types of files exist. This seems unnecessary.

~Or, rename revoke-expired to remove-expired.~

~Or, store expired certificates by serial number.~