Skip to content

Instantly share code, notes, and snippets.

@timmow
Created August 1, 2011 13:53
Show Gist options
  • Save timmow/1118156 to your computer and use it in GitHub Desktop.
Save timmow/1118156 to your computer and use it in GitHub Desktop.
Extract SSL certificate and output information
# Extract SSL certificate and output information
openssl s_client -connect secure.yui.ipcdigital.co.uk:443 > logfile
# Type QUIT then enter
# Edit logfile and remove all except lines between BEGIN certificate and end certificate
openssl x509 -inform PEM -in logfile -text -out certdata
cat certdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment