Certificates

Read Certificate

openssl x509 -text -noout -in certificate.crt

small script to view information about cert

#!/usr/bin/env sh

url=$1

if [ -z "${url}" ]; then
  echo "You need to provide a url"
  exit 1
fi

echo | openssl s_client -showcerts -servername "$url" -connect "$url":443 2>/dev/null | openssl x509 -inform pem -noout -text
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9