File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -553,15 +553,16 @@ expire_status_v2() {
553
553
if [ -f " $1 " ]; then
554
554
verbose " expire_status: cert exists"
555
555
556
+ # Check if cert will be valid else print details
556
557
if will_cert_be_valid " $1 " " $pre_expire_window_s "
557
558
then
558
- : # cert will still be valid by expiry window
559
+ verbose " cert will still be valid by expiry window"
559
560
else
560
- # cert will expire
561
- # ISO8601 date - OpenSSL v3 only
562
- if ! iso_8601_cert_enddate " $1 " cert_not_after_date \
563
- 2> /dev/null
564
- then
561
+ # cert expiry date
562
+ if [ " $openssl_v3 " ] ; then
563
+ # ISO8601 date - OpenSSL v3 only
564
+ iso_8601_cert_enddate " $1 " cert_not_after_date
565
+ else
565
566
# Standard date - OpenSSL v1
566
567
ssl_cert_not_after_date " $1 " cert_not_after_date
567
568
fi
@@ -572,7 +573,7 @@ expire_status_v2() {
572
573
" $cert_not_after_date | CN: $db_cn "
573
574
fi
574
575
else
575
- : # issued cert does not exist, ignore other certs
576
+ verbose " issued cert does not exist, ignore other certs"
576
577
fi
577
578
} # => expire_status_v2()
578
579
You can’t perform that action at this time.
0 commit comments