OpenVPN / easy-rsa

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

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

Closed TinCanTech closed 1 month ago

TinCanTech commented 1 month ago

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.