Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- echo -n "Enter the host name and press [ENTER]: "
- read host
- echo | openssl s_client -connect $host:443 2>/dev/null | openssl x509 -noout -text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement