This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
geek:cli [2019/12/28 19:15] neil [Journalctl] |
geek:cli [2024/05/23 12:55] (current) admin |
||
---|---|---|---|
Line 30: | Line 30: | ||
===== Certificate Expiry ===== | ===== Certificate Expiry ===== | ||
- | Check the expiry date on a SSL certificate. | + | Check the expiry date on a SSL certificate PEM file: |
<code bash> | <code bash> | ||
openssl x509 -enddate -noout -in cert.pem | openssl x509 -enddate -noout -in cert.pem | ||
+ | </code> | ||
+ | Read a certificate directly from a URL: | ||
+ | <code bash> | ||
+ | echo | openssl s_client -showcerts -servername glasgow.social -connect glasgow.social:443 2>/dev/null | openssl x509 -inform pem -noout -text | ||
+ | |||
</code> | </code> | ||