s_client function

This commit is contained in:
Andrea Mistrali 2017-04-21 09:22:20 +02:00
parent 1e4ca33c1b
commit b9c96f038a
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
server=$1
host=$2
if [ -z $host ]
then
host=$server
fi
openssl s_client -connect $server:443 -servername $host