pub fn tls_client_config( key_pair: &KeyPair, peer_id: Option<PeerID>, ) -> Result<ClientConfig>
Returns a TLS client configuration.