talira

tls (Haskell)

TLS 1.2 and 1.3 client and server written purely in Haskell

open sourceBSD-3-Clausefree

tls (Haskell TLS) is a TLS 1.2 and 1.3 client and server library written purely in Haskell, with companion libraries for an in-memory session store and session tickets (tls-session-manager) and for Encrypted Client Hello configuration (ech-config), plus tls-client and tls-server commands. By default it negotiates only TLS 1.3 and 1.2, uses AEAD cipher suites, requires the Extended Main Secret on TLS 1.2, keeps 0-RTT off and includes the hybrid X25519MLKEM768 key exchange. Its primitives come from crypton, and it's fuzzed weekly with tlsfuzzer.

Problems it solves

  • add TLS to a Haskell network server without binding to OpenSSL
  • make HTTPS connections from Haskell
  • use TLS 1.3 with Encrypted Client Hello in Haskell

Features

  • TLS 1.2 and 1.3 client and server in pure Haskell
  • AEAD-only cipher suites by default, with CBC opt-in
  • hybrid X25519MLKEM768 key exchange
  • Encrypted Client Hello configuration (ech-config)
  • in-memory session store and session tickets (tls-session-manager)
  • certificate chain and host name validation against the system store

Limitations

  • It has not been audited by a third party.1
  • Certificate revocation isn't checked: neither OCSP nor CRLs are used.1
  • The Haskell record layer can't be guaranteed to run in constant time.1