# Using "myapp remote\_console" with TLS distribution?

**URL:** <https://erlangforums.com/t/using-myapp-remote-console-with-tls-distribution/2052>\
**Category:** Questions / Help\
**Tags:** erlang-otp, tls\
**Created:** [November 16, 2022, 8:07pm UTC](https://erlangforums.com/t/using-myapp-remote-console-with-tls-distribution/2052 "2022-11-16T20:07:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlipscombe](https://erlangforums.com/user_avatar/erlangforums.com/rlipscombe/32/459_2.png) [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Post date:** [November 16, 2022, 8:07pm UTC](https://erlangforums.com/t/using-myapp-remote-console-with-tls-distribution/2052/1 "2022-11-16T20:07:16Z")

</div>

I’ve got my cluster configured to use TLS for distribution, and now the rebar3-/relx-generated start script fails to ping the node.

It correctly digs the -proto\_dist setting out of vm.args, but doesn’t seem to do anything with the -ssl\_dist\_optfile setting.

How do I get ping, remote\_console, etc., to work when I’m using TLS distribution?

* * *

I looked at the docs for erl\_call, which don’t mention TLS anywhere, so I tried using nodetool instead:

If I run `env "USE_NODETOOL=1" sh -x /myapp/bin/myapp remote_console`, then I see it attempt to connect, and then barf on the `====WARNING REPORT====` that comes out.

---

<div class="post-metadata">

**Author:** ![rlipscombe](https://erlangforums.com/user_avatar/erlangforums.com/rlipscombe/32/459_2.png) [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Post date:** [November 16, 2022, 8:44pm UTC](https://erlangforums.com/t/using-myapp-remote-console-with-tls-distribution/2052/2 "2022-11-16T20:44:20Z")

</div>

I found a workaround:

1. In `vm.args.src`, put `-proto_dist` and `-ssl_dist_optfile` on the _same_ line. I don’t know whether this is intended to be supported, but it results in the startup script picking up the entire line and passing both options.
2. Use `env "USE_NODETOOL=1" /myapp/bin/myapp remote_console`. It takes about 10 seconds to connect (which seems off; it’s instant if I don’t use TLS distribution), but it _does_ work.

Is there a better way to do this?
