rustls-jls

Crates.iorustls-jls
lib.rsrustls-jls
version0.23.25-1.0.2
created_at2025-04-24 14:40:47.669357+00
updated_at2025-04-24 14:40:47.669357+00
descriptionRustls-jls is forked rustls implementing jls protocol.
homepagehttps://github.com/rustls/rustls
repositoryhttps://github.com/rustls/rustls
max_upload_size
id1647358
size1,641,984
(spongebob888)

documentation

README

Rustls-jls

This is a fork of Rustls which implements the JLS protocol.

Implementation detail

  • Use JLS v3 protocol to authenticate clienthello and servehello
  • The authentication result is stored in jls_authed variable. Some(true) for a successful authentication and Some(false) for a failed authentication. None for not handshaking.
  • For a client, a successful authentication will skip certificates verification. A failed one will not and it degenerate to be a normal tls connection.
  • For a server, authentication result makes no difference except jls_authed variable
  • No port forward is implemented since rustls makes no IO operation. It's better to implement in tokio-rustls.

Example

client

see client.

RUST_LOG=debug cargo run --bin simplejlsclient

server

see server.

RUST_LOG=debug cargo run --bin jlsserver-mio -- --certs ./test-ca/ecdsa/end.cert --key ./test-ca/ecdsa/end.key --port 4443 echo
Commit count: 4768

cargo fmt