i have created a self-signed certificate and configured this into a gen_server.
[
{server, [
{certfile, "/home/xxxx/tlstest/spx.pem"},
{log_level, debug},
{log_alert, true},
{secure_renegotiate, true}
]},
{client, [
{secure_renegotiate, true}
]}
].
i started the server and checked using openssl
openssl s_client -connect spx:<port> -prexit
a lot of debug output is displayed on the server side and the openssl-output looks reasonable t me.
when i try to call a server function from another node
erl -name d1 -setcookie t_cook -proto_dist inet_tls -ssl_dist_optfile "/home/xxxx/tlstest/inet_tls_pem.conf"
gen_server:call({t, 'dev-t@spx.xxx.de'}, xx).
(d1@bku.xxxx.de)1> gen_server:call({t, 'dev-t@spx.xxxx.de'}, xx).
** exception exit: {{nodedown,'dev-t@spx.xxxx.de'},
{gen_server,call,[{t,'dev-t@spx.xxxx.de'},xx]}}
in function gen_server:call/2 (gen_server.erl, line 1142)
nothing is displayed on the server side.
when i remove the tls config (remove -proto_dist inet_tls and -ssl_dist_optfile) on both sides gen_server:call succeeds.
my environment: debian linux, Erlang/OTP 27 [erts-15.2.2]
i feel that i have missed something but do not have clue what it might be.
addendum:
net_kernel:connect_node('dev-t@bku.xxxx.de').
just displays false