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

show-expire: Calculate certificate expire seconds from Database date #1023

Merged

Conversation

TinCanTech
Copy link
Collaborator

When a certificate CN is not the same as the file-name then show-expire must calculate the expiry date, in seconds, from the database field.

This is done by functions:

  • db_date_to_iso_8601_date() Translate from database format to ISO_8601 date format.
  • iso_8601_timestamp_to_seconds() Translate from ISO_86012 date format to time-stamp in seconds.

When a certificate CN is not the same as the file-name then show-expire
must calculate the expiry date, in seconds, from the database field.

This is done by functions:
* db_date_to_iso_8601_date()
  Translate from database format to ISO_8601 date format.
* iso_8601_timestamp_to_seconds()
  Translate from ISO_86012 date format to time-stamp in seconds.

Signed-off-by: Richard T Bonhomme <[email protected]>
@TinCanTech TinCanTech merged commit 0b7b2b8 into OpenVPN:master Sep 17, 2023
3 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.

status reports do not work when CN is not equal to FILENAME
1 participant