small pixel drawing of a pufferfish dotfiles

bin/getcert

1 2 3 4 5 6 7
#!/bin/sh
#
# display certs from an https url

url="$1"
parsed_url=$(printf "%s" "$url" | sed 's|https://||g')
openssl s_client -connect "$parsed_url" 443 | openssl x509 -noout -text