tAdd command to check SSL certificate from CLI - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8398660c8908e424a7021278002cba485a20e7e3
(DIR) parent d2ffb20d43c11043888db84d4bd04014b19fcce5
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 24 Jun 2019 09:44:57 +0200
Add command to check SSL certificate from CLI
Diffstat:
M Makefile | 7 +++++++
1 file changed, 7 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -30,3 +30,10 @@ generate-letsencrypt-certificate:
.PHONY: renew-letsencrypt-certificate
renew-letsencrypt-certificate: generate-letsencrypt-certificate
+
+.PHONY: check-letsencrypt-certificate
+check-letsencrypt-certificate:
+ echo | openssl s_client -showcerts -servername andersdamsgaard.com \
+ -connect andersdamsgaard.com:443 2>/dev/null | \
+ openssl x509 -inform pem -noout -text
+