Skip to content

Commit

Permalink
Merge branch 'fix-show-expire-cn-fname-mismatch' of ssh://github.com/…
Browse files Browse the repository at this point in the history
…TinCanTech/easy-rsa into TinCanTech-fix-show-expire-cn-fname-mismatch

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Sep 17, 2023
2 parents 51f55d9 + 72588ac commit 0b7b2b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Easy-RSA 3 ChangeLog

3.2.0 (TBD)
* Forbid "default vars in the default PKI" for all commands #1021
* show-expire: Calculate cert. expire seconds from DB date (#1023)
* Forbid "default vars in the default PKI" for all commands (#1021)
There can be only one default vars file, that is now './vars' ONLY.
Use of other 'vars' files can be done by using option --vars=<FILE>
* Update OpenSSL to 3.1.2
Expand Down
7 changes: 6 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -4834,6 +4834,7 @@ db_date_to_iso_8601_date - input error"

# Assign iso_8601 date
out_date="${yyyy}-${mm}-${dd} ${HH}:${MM}:${SS}${TZ}"
verbose "db_date_to_iso_8601_date: out_date=$out_date"

# Return out_date
force_set_var "$2" "$out_date" || die "\
Expand Down Expand Up @@ -5086,10 +5087,14 @@ expire_status: FALL-BACK completed"

else
verbose "expire_status: cert does NOT exist"
# Translate db date to usable date
# Translate db date to 8601_date
cert_not_after_date=
db_date_to_iso_8601_date \
"$db_notAfter" cert_not_after_date

# Translate 8601_date to time-stamp-seconds
iso_8601_timestamp_to_seconds \
"$cert_not_after_date" cert_expire_date_s
# Cert does not exist
fi

Expand Down

0 comments on commit 0b7b2b8

Please sign in to comment.