From 415daf8c4bd46ebc8cfcd2d8623e246ce94f68ec Mon Sep 17 00:00:00 2001 From: Andrew Louis Date: Thu, 14 Sep 2017 14:56:37 -0400 Subject: [PATCH] openssl: display a domain's cert's start and end dates (#1486) --- pages/common/openssl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/openssl.md b/pages/common/openssl.md index c38e9b1954..3288ac7ed4 100644 --- a/pages/common/openssl.md +++ b/pages/common/openssl.md @@ -14,6 +14,10 @@ `openssl x509 -req -days {{days}} -in {{filename.csr}} -signkey {{filename.key}} -out {{filename.crt}}` +- Display the start and expiry dates for a domain's certificate: + +`openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates` + - Display the certificate presented by an SSL/TLS server: `openssl s_client -connect {{host}}:{{port}}