Secure communication over the unreliable UDP transport with DTLS
The End
DTLS brings encryption capabilities similar to TLS to the connectionless UDP protocol. Both the OpenSSL and GnuTLS libraries provide a high level of security for DTLS connections. It is not a problem to perform the cookie exchange procedure during the DTLS handshake, but it is difficult to refuse this high level of protection. You can't use the only option to turn off the cookie exchange when configuring the DTLS object. You also can't use any stubs or NULL-pointer arguments.
GnuTLS makes you write a part of the server-side handshake procedure manually, which is not a user-friendly approach. OpenSSL already has all the necessary pieces in place, but the current implementation of the library is rather strange. In the future, greater adoption of DTLS will depend upon developers having access to simple and reliable libraries and frameworks with predictable behavior.
Infos
- DTLS: https://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security
- RFC 6347: https://tools.ietf.org/html/rfc6347
- OpenSSL: https://www.openssl.org/
- GnuTLS: https://www.gnutls.org/
- GnuTLS documentation: https://www.gnutls.org/documentation.html
- Code for this article: ftp://ftp.linux-magazine.com/pub/listings/linux-magazine.com/247/
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.