# ESP32: TLS (Transport Layer Security) And IoT Devices

DevFeed: [ESP32: TLS (Transport Layer Security) And IoT Devices](<https://devfeed.tech/articles/esp32-tls-transport-layer-security-and-iot-devices-13862.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/esp32-tls-transport-layer-security-and-iot-devices/>)

Author: John Lee

Published: 2018-10-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [ESP32](<https://devfeed.tech/topics/esp32.md>), [Internet of things](<https://devfeed.tech/topics/iot.md>), [Security](<https://devfeed.tech/topics/security.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [ESP-IDF](<https://devfeed.tech/topics/esp-idf.md>), [spoofing](<https://devfeed.tech/topics/spoofing.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [blog](<https://devfeed.tech/tags/blog.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [esp-idf](<https://devfeed.tech/tags/esp-idf.md>), [esp32](<https://devfeed.tech/tags/esp32.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [iot](<https://devfeed.tech/tags/iot.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [security](<https://devfeed.tech/tags/security.md>), [spoofing](<https://devfeed.tech/tags/spoofing.md>), [technology](<https://devfeed.tech/tags/technology.md>), [tls](<https://devfeed.tech/tags/tls.md>)

## AI overview

This tutorial explains how TLS secures communication between ESP32 devices and remote servers. It covers mutual authentication, key exchange, encryption, message integrity, CA certificates for server validation, and the consequences of omitting certificate validation in ESP-IDF.

## Source excerpt

TLS is the security component in the familiar *https protocol, *that we rely on for security on the Internet. A TLS connection between a device and the server ensures that the data exchange between them is secured from the multiple threats possible over an untrusted medium. The TLS connection typically includes mutual authentication of the communicating parties, secure key exchange, symmetric encryption and message integrity checks.