Secure Websocket connection with self signed certs

Hi everyone,

maybe someone has a hint for me for the following scenario: communicating with embedded (offline) devices via websockets using with self signed certificates.

I've been looking into tungstenite with either rustls oder native-tls. But I haven't found a way to get either accept self signed certs. I am pretty new to rust and also fighting the docs and finding example code to learn from.

Would appreciate any kind of hint.