It's hard to not at least have some level of security nowadays, so you don't have to worry about a passive listener seeing sensitive information, but a man-in-the-middle (MITM) attack could defeat encryption, revealing your credentials, chat messages, etc. To prevent this, we can use the same security that you are already used to when browsing the web.

Prerequisites

You're going to need...

Obtaining A Certificate

With SpaceNinjaServer (or the Dockerized Server) running:

You should now have a certificate. We're going to assume it's stored in /etc/letsencrypt/live/x-x-x-x.iptls.com/.

Installing The Certificate

If you're not using Docker:

If you are using Docker:

Securely Connecting

The client config can now have secure_connections set to true, with server_host being the hostname we got a certificate for.

With secure_connections, a MITM attack will now be surfaced via a connection failure and the attacker won't receive your credentials, chat messages, etc.