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-08-26 14:04:17 +03:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2020-05-15 14:09:49 +01:00
2019-06-24 10:58:13 +02:00
2021-05-06 13:03:23 +01:00
2022-05-03 13:34:51 +01:00
2021-07-29 15:41:35 +01:00
2020-11-26 14:18:57 +00:00
2021-06-17 13:24:59 +01:00
2023-12-04 15:12:34 +01:00
2022-11-01 17:44:51 +01:00
2021-06-17 13:24:59 +01:00
2020-04-23 13:55:52 +01:00
2020-04-23 13:55:52 +01:00
2020-06-25 14:13:12 +01:00
2023-09-07 09:59:15 +01:00
2019-10-17 14:25:10 +03:00
2021-03-11 13:27:36 +00:00
2023-09-07 09:59:15 +01:00
2021-05-06 13:03:23 +01:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2021-03-11 13:27:36 +00:00
2021-06-17 13:24:59 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2021-05-20 14:22:33 +01:00
2021-07-29 15:41:35 +01:00
2023-09-07 09:59:15 +01:00
2021-06-15 18:26:47 +10:00
2021-05-06 13:03:23 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2020-11-05 13:37:26 +00:00
2019-03-07 07:30:04 +10:00
2020-05-15 14:09:49 +01:00
2023-09-07 09:59:15 +01:00
2021-04-08 13:04:41 +01:00
2021-03-11 13:27:36 +00:00
2019-02-13 12:11:49 +01:00
2023-11-10 13:27:00 +01:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2021-03-11 13:27:36 +00:00
2021-04-08 13:04:41 +01:00
2021-03-11 13:27:36 +00:00
2023-09-07 09:59:15 +01:00
2021-04-08 13:04:41 +01:00
2023-03-28 13:49:54 -04:00
2023-09-07 09:59:15 +01:00
2022-11-07 18:18:04 +00:00
2022-09-26 08:01:55 +01:00
2022-11-07 18:18:05 +00:00
2023-12-06 10:40:11 +00:00
2024-04-09 13:43:26 +02:00
2024-04-09 13:43:26 +02:00
2023-11-23 14:46:01 +00:00
2023-09-07 09:59:15 +01:00
2022-11-07 18:18:04 +00:00
2024-04-09 13:43:26 +02:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2021-04-08 13:04:41 +01:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2021-09-07 13:35:43 +02:00
2021-09-07 13:35:43 +02:00
2021-09-07 13:35:43 +02:00
2023-12-19 13:18:36 +01:00
2022-05-03 13:34:51 +01:00
2021-09-03 00:11:53 -04:00
2022-05-03 13:34:51 +01:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2020-04-23 13:55:52 +01:00
2021-01-28 13:54:57 +01:00
2020-05-15 14:09:49 +01:00
2020-04-23 13:55:52 +01:00
2023-03-28 13:49:54 -04:00
2024-04-09 13:43:26 +02:00
2023-09-07 09:59:15 +01:00
2021-02-18 15:05:17 +00:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2021-04-08 13:04:41 +01:00
2023-09-07 09:59:15 +01:00
2024-03-12 20:10:40 +01:00
2024-03-12 20:10:40 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-02-27 09:29:20 +00:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2016-11-23 15:31:21 +00:00