Skip to content

Instantly share code, notes, and snippets.

@pmolchanov
Created February 8, 2016 04:07
Show Gist options
  • Save pmolchanov/0c41d285ab1cd4b29d38 to your computer and use it in GitHub Desktop.
Save pmolchanov/0c41d285ab1cd4b29d38 to your computer and use it in GitHub Desktop.
Get SSL certificate info
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment