Skip to content

Instantly share code, notes, and snippets.

@beryllium
Created January 19, 2018 19:06
Show Gist options
  • Save beryllium/83ec2007337333977990068e15673456 to your computer and use it in GitHub Desktop.
Save beryllium/83ec2007337333977990068e15673456 to your computer and use it in GitHub Desktop.
showcerts
#!/bin/sh
# Grab the certificate and parse out some info
# Usage:
# showcerts whateverthing.com
echo | openssl s_client -showcerts -connect "${1}:443" -servername "$1" | openssl x509 -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment