Skip to content

An example CoAP DTLS implementation with rust-async-coap and rust-openssl.

Notifications You must be signed in to change notification settings

hubertmis/async-coap-dtls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example DTLS COAP Server and Client

An example Constrained Application Protocol(CoAP) Server and client using rust-async-coap.

Usage

server

$ RUST_LOG=trace cargo +nightly run --bin coap-server

client

$ RUST_LOG=trace cargo +nightly run --bin coap-client

Considerations

Some things to consider here:

  • No clone exists for openssl::ssl::SslStream The only way this seemed to work well was to wrap it in an Arc with RwLock.
  • DTLS v1.2 has no session ID A session can only live for the duration of a request. Perhaps with DTLS v1.3 this will change as this proposal will introduce the concept of a session ID.

About

An example CoAP DTLS implementation with rust-async-coap and rust-openssl.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%