autodetect whether the target uses SSL