From 29dac9a39177e7917f3f154e2e7c0dd871e1d128 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 28 May 2017 17:44:00 +0200 Subject: [PATCH] Add small ssl cert viewer script --- bin/view-cert.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/view-cert.sh diff --git a/bin/view-cert.sh b/bin/view-cert.sh new file mode 100755 index 0000000..f5f0e5a --- /dev/null +++ b/bin/view-cert.sh @@ -0,0 +1,3 @@ +#!/bin/bash +HOSTNAME=$1 +echo | openssl s_client -servername $HOSTNAME -connect $HOSTNAME:443 2>/dev/null | openssl x509 -text