From a4e73ea757c0d9bd535c6006a80d79e4267682fa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Mon, 29 Apr 2019 14:29:12 +0200 Subject: [PATCH] openssl: add certificate expiry checking (#2946) --- pages/common/openssl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/openssl.md b/pages/common/openssl.md index ff49782f5..c436b37ea 100644 --- a/pages/common/openssl.md +++ b/pages/common/openssl.md @@ -18,6 +18,10 @@ `openssl x509 -in {{filename.crt}} -noout -text` +- Display a certificate's expiration date: + +`openssl x509 -enddate -noout -in {{filename.pem}}` + - Display the start and expiry dates for a domain's certificate: `openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates`