livekit / rust-sdks

LiveKit realtime and server SDKs for Rust
https://livekit.io
Apache License 2.0
179 stars 42 forks source link

Custom CA file (Self signed Certificate) #372

Open jhnnsrs opened 1 month ago

jhnnsrs commented 1 month ago

Hey everyone,

Amazing work. First time that I run a webrtc framework and it just works :) I am however wondering if there is any plans on supporting custom ca files in the rust (and by extension in the python) client? Or is there any pitfalls that I might be forgetting about?

About my scenario: I would love to run livekit in a local network and stream video feeds (microscopy data) centrally to the server and then to a electron app. Custom certificates shouldn't be a problem in electron land but I am struggling to connect my python based microscope !

Also happy to work on a PR if that could help?

davidzhao commented 1 month ago

Hey @jhnnsrs, I believe the SDK will load any ca-certs that are installed on the system. Did you try to install it on the system?

also, it sounds like an awesome use case!

jhnnsrs commented 1 month ago

hey @davidzhao , again thanks for the great work. i love the simplicity :heart: .

Did you try to install it on the system?

That would be the dream: I wish we had so much control over the clients on the network. Sadly writing to ca-store needs priviledged access in most OSs, which in most scientific environments is not guaranteed by the system administrators (and changing their minds will not be an option :D) . Maybe allowing an ENV overwrite for the CA-store or preferably beeing able to pass it from python would be amazing. But again maybe i am not seing any other limitations to that approach !