<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev" -->

---
title: [RFC idea] DTLS support in ext/openssl (Openssl\Dtls)
description: A PHP internals mailing list thread proposing DTLS (RFC 6347, the UDP counterpart of TLS) support in PHP&#x27;s ext/openssl extension. The author has a working...
canonical: https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: [RFC idea] DTLS support in ext/openssl (Openssl\Dtls) | daily.dev
og:description: A PHP internals mailing list thread proposing DTLS (RFC 6347, the UDP counterpart of TLS) support in PHP&#x27;s ext/openssl extension. The author has a working...
og:url: https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev
og:image: https://api.daily.dev/og/posts/FS8t9wnEV.png
og:image:alt: [RFC idea] DTLS support in ext/openssl (Openssl\Dtls)
og:image:width: 1200
og:image:height: 630
og:locale: 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)** · 15 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 a transport-agnostic Openssl\Dtls class using memory BIOs, enabling use cases like WebRTC data channels, DTLS-SRTP, and CoAP. Discussion covers API design choices: using OpenSSLCertificate/OpenSSLAsymmetricKey objects vs PEM strings, enums vs integer constants for handshake states, and whether to expose DTLS as a dtls:// stream wrapper (like tls:// over tcp://) or a 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 multiplexed transports like WebRTC where DTLS shares a UDP socket with STUN and SRTP.

## Full article

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

## 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--lwrhonyln) · 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--h0f6plset) · 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--5evdgh4oz) · 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

---

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--fs8t9wnev)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"[RFC idea] DTLS support in ext/openssl (Openssl\\Dtls)","url":"https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev"},"datePublished":"2026-06-25T08:43:06.390Z","dateModified":"2026-06-25T08:44:52.956Z","description":"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...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"externals.io","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"externals.io","logo":"https://media.daily.dev/image/upload/s--9i0zxASK--/f_auto,q_auto/v1780213616/logos/externals?_a=BAMAMiWQ0","url":"https://daily.dev/sources/externals"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rfc-idea-dtls-support-in-ext-openssl-openssl-dtls--fs8t9wnev","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,php,cryptography,webrtc","timeRequired":"PT15M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"externals.io","item":"https://daily.dev/sources/externals"},{"@type":"ListItem","position":3,"name":"[RFC idea] DTLS support in ext/openssl (Openssl\\Dtls)"}]}
```

