Added blocking handshake for outbound SSL connections #2833