# `MobWebrtc.KeyCert`
[🔗](https://github.com/GenericJam/mob_webrtc/blob/main/lib/mob_webrtc/key_cert.ex#L1)

One DTLS key and certificate for every peer the app opens.

`ex_dtls` only generates RSA-2048 keys, which took 150–1,100 ms each on the
spike's simulator and emulator, and `ex_webrtc` generates one per
PeerConnection unless it's given a `key_cert`. This process makes one at
application start, off the call path. A `get/1` that arrives while it's
still generating waits for it.

# `key_cert`

```elixir
@type key_cert() :: {pkey :: binary(), cert :: binary()}
```

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `get`

```elixir
@spec get(timeout()) :: {:ok, key_cert()} | {:error, term()}
```

# `start_link`

```elixir
@spec start_link(term()) :: GenServer.on_start()
```

# `status`

```elixir
@spec status() :: :ready | {:error, term()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
