Skip to content

Omit empty DTLS 1.3 certificate authorities#153

Merged
algesten merged 2 commits into
algesten:mainfrom
jshanson7:codex/omit-empty-cert-authorities
Jun 26, 2026
Merged

Omit empty DTLS 1.3 certificate authorities#153
algesten merged 2 commits into
algesten:mainfrom
jshanson7:codex/omit-empty-cert-authorities

Conversation

@jshanson7

@jshanson7 jshanson7 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

TLS 1.3 defines certificate_authorities as a non-empty list when the extension is present. dimpl currently sends it with an empty list in DTLS 1.3 CertificateRequest; Chrome/BoringSSL reject that as malformed:

Chrome RTCPeerConnection
-> ICE/UDP connected to str0m
-> str0m using dimpl DTLS 1.3 on the passive/server side
-> dimpl default require_client_certificate = true
-> no CA names to advertise

omitting the extension when there are no CA names keeps client auth enabled and makes the CertificateRequest valid.

@jshanson7 jshanson7 force-pushed the codex/omit-empty-cert-authorities branch from 5ae5167 to 3bd14f2 Compare June 24, 2026 17:44
@jshanson7 jshanson7 force-pushed the codex/omit-empty-cert-authorities branch from 3bd14f2 to 8adae56 Compare June 24, 2026 17:46
@jshanson7 jshanson7 marked this pull request as ready for review June 24, 2026 20:39
@jshanson7

Copy link
Copy Markdown
Contributor Author

@algesten we've confirmed this fixes chrome <> str0m when using 1.3.

@algesten

Copy link
Copy Markdown
Owner

@jshanson7 thanks for hunting it down, and @tyhik thanks for also finding it. Let's get the fix out!

@algesten algesten force-pushed the codex/omit-empty-cert-authorities branch from dbfcf5b to b24d074 Compare June 26, 2026 14:02
@algesten algesten merged commit 64d5bfc into algesten:main Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants