-
-
Save 5bhuv4n35h/e3e3be1411d23b03c183b8dbb3399a02 to your computer and use it in GitHub Desktop.
get altnames from ssl certificates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sslsub() { | |
timeout 3 openssl s_client -showcerts -servername $1 -connect $1:443 <<< "Q" 2>/dev/null | openssl x509 -text -noout | grep DNS | tr ',' '\n' | cut -d ':' -f 2 | sort -fu | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment