Hi
Two friends and I are developing an application and they decided to make a RADIUS AAA, but they had difficulties and started with TLS 1.0. So for my application to accept I need to change Erlang to work. As the documentation says it can be configured but doesn’t say how, I found it difficult to get TLS 1.0 to work. As the documentation says configure, I thought there was some configuration file in erlang where I could specify version 1.0. When I compile a test program with parameter TLSV1 or TLSV1.2 the error is executed. below the program code
-module(ssltest).
-compile(export_all).
-define(PORT, 11000).
server() →
application:load(ssl),
logger:set_application_level(ssl, debug),
{ok, _} = application:ensure_all_started(ssl),
Port = ?PORT,
LOpts = [{certfile, “server1.pem”},
{keyfile, “server.pub”},
{versions, [‘tlsv1’]},
{log_level, debug}
],
{ok, LSock} = ssl:listen(Port, LOpts),
{ok, CSock} = ssl:transport_accept(LSock),
{ok, _} = ssl:handshake(CSock).
client() →
application:load(ssl),
logger:set_application_level(ssl, debug),
{ok, _} = application:ensure_all_started(ssl),
Port = ?PORT,
COpts = [{verify, verify_peer},
{cacertfile, “server1.pem”},
{versions, [‘tlsv1’]},
{log_level, debug}
],
{ok, Sock} = ssl:connect(“localhost”, Port, COpts).
thanks