Introduction
Imagine sending a secret message to a friend but worried someone might read it on the way. This is the problem TLS/SSL solves by protecting information sent over the internet or networks so only the intended person can understand it.
Jump into concepts and practice - no test required
Imagine sending a locked box with a secret message inside to a friend. You both have matching keys to open the box. Before sending, you agree on which lock and key to use so no one else can open it or change the message.
┌───────────────┐ Handshake ┌───────────────┐
│ Client │──────────────────────▶│ Server │
│ (Your device) │ │ (Website or │
│ │◀──────────────────────│ Server) │
└───────────────┘ └───────────────┘
│ │
│ Encrypted Data │
└─────────────────────────────────────▶
iot.example.com on port 443?openssl s_client -connect host:port to test TLS connections.openssl s_client -connect iot.device.local:8883
openssl s_client doesopenssl s_client -connect iot.device.local:443 but get a connection error. What is the most likely cause?