Ensure cert-deets uses port 443/TCP by default

This commit is contained in:
Scott Wallace 2023-04-27 14:27:15 +01:00
parent 523102a860
commit 3575d71cfa
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -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