Sets this's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let this know what name to look for in the certificate when performing g_tls_certificate_bad_identity validation, if enabled.
this | |
identity |
a SocketConnectable describing the expected server identity |