elixir-webrtc / ex_webrtc

An Elixir implementation of the W3C WebRTC API
Apache License 2.0
363 stars 14 forks source link

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

Closed mickel8 closed 4 months ago

mickel8 commented 4 months 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 4 months ago

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