Skip to content

Instantly share code, notes, and snippets.

@pcn
Created December 16, 2013 14:49
Show Gist options
  • Select an option

  • Save pcn/7988164 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/7988164 to your computer and use it in GitHub Desktop.
get a cert using openssl
openssl s_client -connect foo:443 </dev/null 2>/dev/null | sed -n '/^-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/p' | openssl x509 -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment