swaggboi

Untitled

Aug 23rd, 2021 (edited)
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/usr/bin/env sh
  2.  
  3. for host in $@; do
  4.     openssl s_client -connect $host:443 < /dev/null | \
  5.         openssl x509 -noout -text | \
  6.         perl -ne 'if (/DNS/) {
  7.                      s/^ +|DNS://g;
  8.                      s/, /\n/g;
  9.                      print;
  10.                  }'
  11. done
  12.  
Add Comment
Please, Sign In to add comment