elixir-webrtc / ex_webrtc

An Elixir implementation of the W3C WebRTC API
Apache License 2.0
270 stars 8 forks source link

Firefox can't establish two simultanous peer connections with Elixir WebRTC #127

Closed mickel8 closed 3 days ago

mickel8 commented 6 days ago

We basically can't open two PeerConnections in Firefox when on the other side is Elixir WebRTC.

Firefox requires issuer name and serial number of the DTLS certificate to uniquly identify it. In our case, issuer name is always ExDTLS while serial number is 1. See here.

There are two possibilities:

  1. Always use the same certificate - this seems to work
  2. Generate different issuer name/serial number

See this issue for more.

mickel8 commented 1 day ago

Fixed in ex_dtls 0.15.2. Just update ex_dtls dependency with mix deps.update ex_dtls