Generate the release:
git clone [email protected]:ConnorRigby/elixir-distribution-ssl-example.git
cd elixir-distribution-ssl-example
mix release
Next, open two terminals in the same directory, in one do:
env [email protected] RELEASE_DISTRIBUTION=name _build/dev/rel/example/bin/example start_iex
in the second do:
env [email protected] RELEASE_DISTRIBUTION=name _build/dev/rel/example/bin/example start_iex
And finally back in the first one connect to the second:
Node.connect(:"[email protected]")
Now these nodes are distributed via SSL.
When using TLS in this way, a lot of the helper script generated by Elixir will not work correctly, namely the remote
function and anything that works using the same mechanism. There is an open issue here