constructor with specific mode: [NNG_TLS_MODE_SERVER, NNG_TLS_MODE_CLIENT]
A destructor is present on this object, but not explicitly documented in the source.
void set_pass ( string ipass ) { auto rc = nng_tls_config_pass(tls, ipass.toStringz()); enforce(rc == 0); }
server name make sense for CLIENT to correspond with the CN of server certificate
{MMGTLS} NNG TLS config implementation - create it in server or client mode - set CA certifivate if needed (from file or string) - set chain certificate if needed (from file or string) - set auth mode (required, optional or none) - for auth mode set own certificate and key (from file or string) - assign the filled config to the dealer or listener object - start dealer or listener