Photo

mini-tls

Description

mini-tls is a self-contained mini TLS server and TLS client project in pure C/CPP built on the crypery library (TLS 1.2/1.3). There are no external dependencies: all crypto algorithms are implemented from scratch inside the crypery library.

The server listens on a TCP port, generates an RSA-2048 key and a self-signed X.509 certificate at startup, performs a TLS handshake with each connecting client (auto-selecting TLS 1.2 or 1.3) and echoes back all received data. The client connects to the server, performs the handshake, prints the negotiated session parameters and exchanges messages with the server in interactive or non-interactive mode.

Modules used

The examples use the tls module directly; all library modules are compiled at build time:

Technologies

Resources

Open GitHub