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:
- Always use the same certificate - this seems to work
- Generate different issuer name/serial number
See this issue for more.