---
title: "[RFC idea] DTLS support in ext/openssl (Openssl\\Dtls)"
url: https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--h0f6plset
source_url: https://externals.io/message/131776
type: article
source: "externals.io"
published: 2026-07-05T10:11:25.605Z
updated: 2026-07-05T10:11:50.832Z
tags: ["security", "php", "cryptography", "webrtc"]
reading_time: 36
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# [RFC idea] DTLS support in ext/openssl (Openssl\Dtls)

**[externals.io](https://daily.dev/sources/externals)** · 36 min read · 0 upvotes · 0 comments

## Summary

A PHP internals mailing list thread proposing DTLS (RFC 6347, the UDP counterpart of TLS) support in PHP's ext/openssl extension. The author has a working proof-of-concept featuring an Openssl\Dtls class using memory BIOs so applications can own packet I/O — enabling WebRTC data channels, DTLS-SRTP, CoAP, and other protocols that multiplex DTLS with other traffic on one UDP socket. Discussion covers API design choices: using OpenSSLCertificate/OpenSSLAsymmetricKey objects instead of PEM strings, enums vs integer constants for handshake state, and whether to add a dtls:// stream wrapper alongside the low-level engine. The ext/openssl maintainer (Jakub) prefers a stream wrapper approach, while the author argues both surfaces are needed — the stream for simple cases and the low-level engine for WebRTC-style multiplexing. The proposal suggests one core implementation with two API surfaces.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://externals.io/message/131776>

## Similar posts on daily.dev

- [\[RFC idea\] DTLS support in ext/openssl \(Openssl\\Dtls\)](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev) · externals.io · 0 upvotes · 0 comments
- [\[RFC idea\] DTLS support in ext/openssl \(Openssl\\Dtls\)](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--zl8jnqlfp) · externals.io · 0 upvotes · 0 comments
- [\[RFC idea\] DTLS support in ext/openssl \(Openssl\\Dtls\)](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--tgzphzf2d) · externals.io · 0 upvotes · 0 comments
- [\[RFC idea\] DTLS support in ext/openssl \(Openssl\\Dtls\)](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--rjoqekksh) · externals.io · 0 upvotes · 0 comments
- [\[RFC idea\] DTLS support in ext/openssl \(Openssl\\Dtls\)](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--s7ig3ico3) · externals.io · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#php](https://daily.dev/tags/php), [#cryptography](https://daily.dev/tags/cryptography), [#webrtc](https://daily.dev/tags/webrtc)

[View this post on daily.dev](https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--h0f6plset)
