4 ms·
Wonder when the last current root certificate in a common OS (Windows, OS X, mozilla ca-certificates, etc.) expires.
by jtl999 7y ago
Wonder when the last current root certificate in a common OS (Windows, OS X, mozilla ca-certificates, etc.) expires.
- Arnavion 7y ago$ pem=''; cat /etc/ssl/ca-bundle.pem | while read -r line; do pem="$(printf '%s\n%s' "$pem" "$line")"; if grep -q 'END CERTIFICATE' <<< "$line"; then openssl x509 -inform pem -enddate -noout <<< "$pem" | cut -d= -f2 | date -f - -I; pem=''; fi; done | sort -r | head -1 2046-10-06
- schoen 7y ago$ for x in /etc/ssl/certs/*.pem; do openssl x509 -in $x -dates -noout; done | grep After | cut -d= -f2 | sort -n +3 [...] Oct 6 08:39:56 2046 GMT That certificate is for Subject: C = PL, O = Unizeto Technologies S.A., OU = Certum Certification Authority, CN = Certum Trusted Network CA 2