Skip to main content

Crate ytls_server

Crate ytls_server 

Source
Expand description

The server implements all the TLS Processor traits and provides a stateful context from the server end PoV.

§Try it out

Note: The below assumes hostname is test.rustcryp.to on IPv4 address 192.168.64.3.

Generate the example secp256v1 certificates

$ cd ../test_certs
$ make prime256v1

Start the server listener

$ cargo run --example listener

And then PING with the openssl client:

$ openssl s_client -CAfile test_certs/ca.prime256v1.crt -debug -msg -tls1_3 -security_debug_verbose -state 192.168.64.3:9999

Once the openssl client is connected, you can type PING and then get a PONG as per listener example.

Structs§

HandshakeComplete
Marker for Handshake being complete
ServerApplicationCtx
yTLS Server Application Ctx
ServerHandshakeCtx
State machine context for yTLS Server
TlsServerCtx
yTLS Server Context

Enums§

CtxError
yTLS Context Errors
Rfc8446Error

Traits§

CtxApplicationProcessor
Implement to process application data part
CtxHandshakeProcessor
Implement to process handshaking part
TlsLeftIn
TLS State Machine Left (Ciphertext) or “Network” I/O ingress side
TlsLeftOut
TLS State Machine Left (Ciphertext) or “Network” I/O egress side
TlsRight
TLS State Machine Right (Cleartext) or “Application” I/O side
TlsServerCtxConfig
Implement to provide configuration for the Tls Server Context