Stephan Wurm 8120223773 apps: ca,req,x509: Add explicit start and end dates options
- Added options `-not_before` (start date) and `-not-after` (end date)
  for explicit setting of the validity period of a certificate in the
  apps `ca`, `req` and `x509`
- The new options accept time strings or "today"
- In app `ca`, use the new options as aliases of the already existing
  options `-startdate` and `-enddate`
- When used in apps `req` and `x509`, the end date must be >= the start
  date, in app `ca` end date < start date is also accepted
- In any case, `-not-after` overrides the `-days` option
- Added helper function `check_cert_time_string` to validate given
  certificate time strings
- Use the new helper function in apps `ca`, `req` and `x509`
- Moved redundant code for time string checking into `set_cert_times`
  helper function.
- Added tests for explicit start and end dates in apps `req` and `x509`
- test: Added auxiliary functions for parsing fields from `-text`
  formatted output to `tconversion.pl`
- CHANGES: Added to new section 3.4

Signed-off-by: Stephan Wurm <atomisirsi@gsklan.de>

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21716)
2024-04-09 20:13:31 +02:00
..
2020-10-15 14:10:06 +01:00
2023-09-07 09:59:15 +01:00
2021-04-22 14:38:44 +01:00
2022-02-14 10:18:46 +01:00
2019-09-04 17:26:07 +02:00
2022-02-03 13:56:38 +01:00
2020-05-15 14:09:49 +01:00
2024-04-04 18:16:05 +02:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-12-12 19:50:23 +01:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2021-06-17 13:24:59 +01:00
2022-05-03 13:34:51 +01:00
2020-06-25 14:13:12 +01:00