From 523102a860918d4ea10a181a68103002b5c7ab01 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Apr 2023 14:13:30 +0100 Subject: [PATCH] Add a Bash function to show certificate details --- .bashrc.d/openssl | 1 + 1 file changed, 1 insertion(+) create mode 100644 .bashrc.d/openssl diff --git a/.bashrc.d/openssl b/.bashrc.d/openssl new file mode 100644 index 0000000..11fd524 --- /dev/null +++ b/.bashrc.d/openssl @@ -0,0 +1 @@ +function cert-deets() { openssl s_client -connect "$1" 2>/dev/null <<< Q | openssl x509 -noout -subject -ext subjectAltName -dates; } && export -f cert-deets