1
0
mirror of https://github.com/akelge/zsh synced 2025-07-04 05:29:06 +00:00

Add x509remote function

This commit is contained in:
2021-11-23 15:45:57 +01:00
parent 030a3b8aca
commit 6bd3e4b627
2 changed files with 6 additions and 0 deletions

View File

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