#!/bin/sh #fix this to suit your needs. /usr/local/bin/ncat --ssl "$1" "$2" #I heard this was a bad idea. #openssl s_client -q -connect "$1:$2"