From b9c96f038a135325855ee7cfdd50e080947241ec Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 21 Apr 2017 09:22:20 +0200 Subject: [PATCH] s_client function --- zsh.d/zshfunctions/s_client | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 zsh.d/zshfunctions/s_client diff --git a/zsh.d/zshfunctions/s_client b/zsh.d/zshfunctions/s_client new file mode 100644 index 0000000..6f0455b --- /dev/null +++ b/zsh.d/zshfunctions/s_client @@ -0,0 +1,7 @@ +server=$1 +host=$2 +if [ -z $host ] +then + host=$server +fi +openssl s_client -connect $server:443 -servername $host