zsh/zsh.d/zshfunctions/x509remote

7 lines
151 B
Plaintext

if [ -r "$1" ]; then
openssl s_client -connect $1 < /dev/null | \
openssl x509 -noout -text | less
else
echo "x509remote <host:port>"
fi