Ensure that connection only succeeds when TLS succeeds and device id checks out.