Add a Bash function to show certificate details

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

1
.bashrc.d/openssl Normal file
View file

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