Skip to content
/ tls13 Public

Quick and dirty implementation of TLS 1.3 in Erlang

License

Notifications You must be signed in to change notification settings

dansarie/tls13

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tls13

License: GPL v3

Quick and dirty implementation of TLS 1.3 (RFC-to-be 8446) in Erlang.

Dependencies

Build

$ rebar3 release

Use

All API functions can be found in the tls13 module. The following short example shows how to create a simple echo server.

echo_loop(Ref) ->
  Data = tls13:recv(Ref, true),
  tls13:send(Ref, Data),
  echo_loop(Ref).

% IP address argument formatted as {127, 0, 0, 1}.
start_echo_server(IP, Port) ->
  application:start(tls13),
  Fun = fun(Ref) -> echo_loop(Ref) end,
  tls13:listen(IP, Port, "path/to/cert.pem", "path/to/private/key.pem", Fun).

License

This project is licensed under the GNU General Public License — see the LICENSE file for details.

About

Quick and dirty implementation of TLS 1.3 in Erlang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages