Skip to content

TLS Configuration

Erlang supports multiple distribution configuration than EPMD, such as TLS. TLS distribution is used to get an extra layer of security for a running node or cluster. If this method is used all running node must use TLS.

WombatOAM uses a custom tcp distribution protocol for adding nodes with name or sname. However, if changing the protocol to TLS this feature is going to be lost. Wombat is started with name, so only nodes started with name can be added when using TLS distribution protocol.

To configure the vm.args before the first start, or the vm.args.orig has to be modified in the <WOMBAT_OAM_PATH>/_build/default/rel/wombat/releases/<VERSION> folder the following way. Uncomment the inet_tls parts and modifie the path string to a custom conf file.

## Select distribution module
## -proto_dist wo_tcp
## Uncomment for TLS support
## Select distribution module for TLS
-proto_dist inet_tls
-ssl_dist_optfile "YOUR_PATH_TO_CERTIFICATE"

A configuration wombat@0.0.0.0.conf file example:

[{server,
[{certfile, "<PATH_TO_CERTIFICATE_FOLDER>/certificate.pem"},
{keyfile, "<PATH_TO_CERTIFICATE_FOLDER>/private-key.pem"},
{secure_renegotiate, true}]},
{client,
[{secure_renegotiate, true}]}].

The certificates and private/public keys created using the following link using OpenSSL.

The monitored node has to be configured the same way as WombatOAM to be able to connect the nodes to each other.