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

easyrsa-tools.lib: expire_status_v2() (show-expire version 2) #1214

Merged
merged 3 commits into from
Aug 15, 2024

Conversation

TinCanTech
Copy link
Collaborator

Major simplification for command 'show-expire'.

  1. Ignore certificates which are not present in 'pki/issued' sub-dir.

This includes certs moved to expired, renewed or revoked sub-dirs. These can all be ignored because their validitiy is irrelevant. (Ignore serial number mismatches as irrelevant)

  1. Drop all use of 'date' binary.

Only use OpenSSL format modifiers to control date format.

  1. Try to use ISO8601 date format, as of OpenSSL v3.

Otherwise, fallback to default certificate date format.

Major simplification for command 'show-expire'.

1. Ignore certificates which are not present in 'pki/issued' sub-dir.

This includes certs moved to expired, renewed or revoked sub-dirs.
These can all be ignored because their validitiy is irrelevant.
(Ignore serial number mismatches as irrelevant)

2. Drop all use of 'date' binary.

Only use OpenSSL format modifiers to control date format.

3. Try to use ISO8601 date format, as of OpenSSL v3.

Otherwise, fallback to default certificate date format.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech TinCanTech linked an issue Aug 15, 2024 that may be closed by this pull request
@TinCanTech TinCanTech merged commit cf8b082 into OpenVPN:master Aug 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

show-expire bug - fails to parse date
1 participant