openssl/apps
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
..
demoSRP
include apps: ca,req,x509: Add explicit start and end dates options 2024-04-09 20:13:31 +02:00
lib apps: ca,req,x509: Add explicit start and end dates options 2024-04-09 20:13:31 +02:00
asn1parse.c Harden asn1 oid loader to invalid inputs 2023-12-13 11:10:36 -05:00
build.info
ca-cert.srl
ca-key.pem
ca-req.pem
ca.c apps: ca,req,x509: Add explicit start and end dates options 2024-04-09 20:13:31 +02:00
CA.pl.in
cert.pem
ciphers.c
client.pem
cmp.c Copyright year updates 2024-04-09 13:43:26 +02:00
cms.c Fix a possible memleak in cms_main 2023-12-12 19:45:09 +01:00
crl2pkcs7.c
crl.c Copyright year updates 2024-04-09 13:43:27 +02:00
ct_log_list.cnf
dgst.c Fix some memory leaks in the openssl app 2023-09-21 14:39:36 +02:00
dhparam.c Copyright year updates 2023-09-28 14:23:29 +01:00
dsa512.pem
dsa1024.pem
dsa-ca.pem
dsa-pca.pem
dsa.c Copyright year updates 2023-09-07 09:59:15 +01:00
dsap.pem
dsaparam.c Fix some memory leaks in the openssl app 2023-09-21 14:39:36 +02:00
ec.c Copyright year updates 2023-09-07 09:59:15 +01:00
ecparam.c
enc.c Copyright year updates 2024-04-09 13:43:26 +02:00
engine.c Copyright year updates 2024-04-09 13:43:26 +02:00
errstr.c Fix some invalid use of sscanf 2023-12-12 16:12:32 +00:00
fipsinstall.c Copyright year updates 2023-09-07 09:59:15 +01:00
gendsa.c Copyright year updates 2023-09-28 14:23:29 +01:00
genpkey.c Copyright year updates 2024-04-09 13:43:26 +02:00
genrsa.c Copyright year updates 2023-09-28 14:23:29 +01:00
info.c
insta.ca.crt
kdf.c
list.c Make 'openssl list' less sensitive for providers without params 2023-12-04 15:12:34 +01:00
mac.c
nseq.c
ocsp.c Copyright year updates 2023-09-07 09:59:15 +01:00
openssl-vms.cnf Convert jdkTrustedKeyUsage to be a pkcs12 cmd line option 2023-10-20 16:30:43 +01:00
openssl.c APPS: remove duplicate definition of trace_data_stack 2023-09-18 09:06:47 +10:00
openssl.cnf Convert jdkTrustedKeyUsage to be a pkcs12 cmd line option 2023-10-20 16:30:43 +01:00
passwd.c
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c
pkcs8.c
pkcs12.c Copyright year updates 2024-04-09 13:43:27 +02:00
pkey.c Copyright year updates 2023-09-07 09:59:15 +01:00
pkeyparam.c
pkeyutl.c Copyright year updates 2023-09-07 09:59:15 +01:00
prime.c
privkey.pem
progs.pl Copyright year updates 2023-09-28 14:23:29 +01:00
rand.c Augment rand argument parsing to allow scaling 2023-11-13 12:21:34 +01:00
rehash.c Copyright year updates 2024-04-09 13:43:26 +02:00
req.c apps: ca,req,x509: Add explicit start and end dates options 2024-04-09 20:13:31 +02:00
req.pem
rsa8192.pem
rsa.c Copyright year updates 2023-09-07 09:59:15 +01:00
rsautl.c Copyright year updates 2023-09-07 09:59:15 +01:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_client.c Don't error if s_client receives exactly BUFSIZZ data 2023-11-01 10:20:19 +00:00
s_server.c Copyright year updates 2024-04-09 13:43:26 +02:00
s_time.c Copyright year updates 2024-04-09 13:43:26 +02:00
server2.pem
server.pem
server.srl
sess_id.c
smime.c Fix a possible memleak in smime_main 2023-12-12 19:47:07 +01:00
speed.c openssl-speed: support KMAC128 & KMAC256, refactor mac setup/teardown 2023-11-24 13:58:14 +01:00
spkac.c Copyright year updates 2023-09-07 09:59:15 +01:00
srp.c
storeutl.c
testCA.pem
testdsa.h
testrsa.h
timeouts.h
ts.c Copyright year updates 2023-09-07 09:59:15 +01:00
tsget.in
verify.c
version.c
vms_decc_init.c
x509.c apps: ca,req,x509: Add explicit start and end dates options 2024-04-09 20:13:31 +02:00