#!/bin/bash [ -z "$1" ] || [ ! -r "$1" ] && echo "Cert file $1 not found" && exit 1 openssl x509 -in "$1" -text -noout