If you are doing automatic connections to peers on a local network, you probably want to be using TLS these days.
Using TLS generally requires a CN to validate. But you can use self-signed certs and TOFU (Trust on First Use) in some cases
Doing that requires generating keys. And generating keys requires using something like openssl. And learning openssl is a pain in the ass.
So I made a helper to asynchronously generate a GTlsCertificate for use in your glib/gtk apps.