Gio.TlsClientConnection.prototype.set_server_identity

function set_server_identity(identity: Gio.SocketConnectable): void {
    // Gjs wrapper for g_tls_client_connection_set_server_identity()
}
  

Sets conn's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing Gio.TlsCertificateFlags.bad_identity validation, if enabled.

Since 2.28

identity

a Gio.SocketConnectable describing the expected server identity