#!/usr/bin/env sh set -eu host="${1:-example.com}" printf '== certificate == ' openssl s_client -connect "$host:443" -servername "$host" /dev/null | openssl x509 -noout -subject -issuer -dates printf ' == HTTPS == ' curl -I --http2 --max-time 10 "https://$host/"