NNGTLS

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

Constructors

this
this(nng_tls_mode imode)

constructor with specific mode: [NNG_TLS_MODE_SERVER, NNG_TLS_MODE_CLIENT]

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

set_server_name
void set_server_name(string iname)

server name make sense for CLIENT to correspond with the CN of server certificate