From 3575d71cfaf80623ae3d0e0ab9c67eed7b367604 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Apr 2023 14:27:15 +0100 Subject: [PATCH] Ensure cert-deets uses port 443/TCP by default --- .bashrc.d/openssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc.d/openssl b/.bashrc.d/openssl index 11fd524..e2ea4bd 100644 --- a/.bashrc.d/openssl +++ b/.bashrc.d/openssl @@ -1 +1 @@ -function cert-deets() { openssl s_client -connect "$1" 2>/dev/null <<< Q | openssl x509 -noout -subject -ext subjectAltName -dates; } && export -f cert-deets +function cert-deets() { openssl s_client -connect "$1" -port 443 2>/dev/null <<< Q | openssl x509 -noout -subject -ext subjectAltName -dates; } && export -f cert-deets