Skip to content

Commit e657db0

Browse files
committed
Date 2038 issues
CAs (including self-signers) are using dates >2038, so the date command requires a 64-bit time_t. When not available, ignore the error (and report only GMT).
1 parent 2e220d2 commit e657db0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ssl_info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ s/ X509v3 Subject Alternative Name:/Subject Alternative Name:/;
3232
s/^ / /g;
3333
s/ Public Key Algorithm:/Public Key Algorithm:/g;
3434
s/, DNS:/,\n DNS:/g;
35-
s/^\( *Issued : \| *Expires:\)\(.*\)/echo "\1\2 ($(date -d"\2"))"/e'
35+
s,^\( *Issued : *\| *Expires: *\)\(.*\),echo "\1\2 ($(date -d"\2" 2>/dev/null))",e'
3636
cert=
3737
incert=
3838
else

0 commit comments

Comments
 (0)