#!/bin/bash httpstest $1 | sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -text