connect to SSL servers

a also sadly jumbled up: handle ports as integers and reject non-integer ports early