From 181f2ffb9a28f7177a9ad4d45609efaafd04a88d Mon Sep 17 00:00:00 2001 From: zlbabe <31076777+zlbabe@users.noreply.github.com> Date: Thu, 15 Feb 2018 22:44:09 +0000 Subject: [PATCH] openssl: Display certificate information (#1999) --- pages/common/openssl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/openssl.md b/pages/common/openssl.md index 3288ac7ed..ff49782f5 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 certificate information: + +`openssl x509 -in {{filename.crt}} -noout -text` + - Display the start and expiry dates for a domain's certificate: `openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates`