Blog Device Identity
device identity PKI IoT security fundamentals

What Is Device Identity and Why It Matters for IoT Security

Shubhendra Singh Thakur 7 min read
Abstract network of interconnected nodes representing device identity in IoT security

When a factory floor deploys ten thousand connected sensors, a gateway router, or a smart meter — someone, eventually, has to answer the question: how do we know this device is actually one of ours? Not just at commissioning time. Every time it connects. Every packet it sends. The answer to that question is device identity, and it is the structural foundation beneath every security claim an IoT deployment can make.

What "Device Identity" Actually Means

Device identity is the cryptographically verifiable claim that a specific physical device is what it presents itself to be. The word "cryptographically" is load-bearing here. Shared passwords, static API keys, and MAC address filters are all forms of device identification — but they are not device identity in the security sense, because none of them are unforgeable. A MAC address can be spoofed in three shell commands. A shared secret copied into firmware is shared across every unit that came off that production line.

True device identity means each device holds a private key that never leaves the hardware, and carries a corresponding certificate signed by a certificate authority (CA) the backend infrastructure trusts. When the device connects, it proves possession of the private key through the TLS handshake. The CA chain establishes that the certificate was issued by a known authority to a device with a specific serial number. Forging that exchange requires breaking the underlying asymmetric cryptography — not just guessing a password.

The technical substrate here is X.509 Public Key Infrastructure (PKI). X.509 is the format used for TLS certificates on every HTTPS website, and the same format used for device certificates. The difference is scale and operational pattern: a web server might have one or two certificates renewed annually. A device fleet might have millions of certificates, each tied to a unique serial, each potentially needing lifecycle management over a five-to-fifteen-year device lifetime.

The Certificate Hierarchy in Practice

An IoT PKI typically follows a two or three-tier hierarchy. At the root sits a Root CA — an offline, air-gapped authority that issues sparingly and is protected with maximum physical and cryptographic controls. Below it sits one or more Intermediate CAs (sometimes called Issuing CAs), which are online and do the actual per-device issuance work. Devices never interact with the Root CA directly; the Intermediate CA issues device certificates and the Root CA vouches for the Intermediate CA's legitimacy.

This separation matters operationally. If an Intermediate CA key is compromised, the Root CA can revoke that intermediate's certificate and stand up a new one without invalidating every device certificate in the field — provided the revocation is propagated correctly. If the Root CA key is compromised, the entire trust hierarchy must be rebuilt from scratch. This is why root CA operations are treated with the same rigor as hardware security module (HSM) custody procedures.

Consider a concrete scenario: an industrial sensor manufacturer in Pune ships 80,000 gas detection units to an oil-and-gas operator across Southeast Asia. Each unit is provisioned at the factory with a device certificate issued by the manufacturer's Intermediate CA. The certificate embeds the unit's serial number as a Subject Alternative Name. When the unit calls home over MQTT/TLS, the operator's cloud backend validates the certificate chain back to the Root CA, checks the revocation status, and confirms the serial matches its asset register. No pre-shared key, no IP allowlist, no MAC filter — just the certificate chain.

Why Symmetric Keys and Shared Secrets Break at Scale

The alternative — symmetric keys or shared secrets — works when you have a handful of devices. It fails when you have 100,000. The core problem is key distribution: symmetric approaches require the secret to exist in at least two places (the device and the backend). Every additional copy is an additional attack surface. In IoT, where firmware binaries are often extractable from hardware via JTAG, UART, or flash read-out, "the secret is in the firmware" is equivalent to "the secret is on the floor."

There's a subtler operational problem: revocation. If one device is compromised — physically stolen, firmware extracted — and it shares a key with 499 other devices of the same SKU, how do you revoke just that one device without disrupting the other 499? With per-device X.509 certificates, the answer is straightforward: add the compromised device's certificate serial to the certificate revocation list (CRL) or mark it revoked in the OCSP responder. The other 499 certificates are unaffected. With shared keys, the answer is "rotate the key across the entire fleet and hope the compromised device goes offline before it causes damage."

Hardware Binding: Why Software-Only Identity Has Limits

Generating a key pair in software — in application memory — and writing the private key to flash storage is better than no device identity, but it comes with a known weakness: anyone who can read flash can steal the private key. This is the argument for hardware-bound identity: a Trusted Platform Module (TPM), secure element (SE), or integrated security subsystem that can generate key material internally and expose only signing operations externally. The private key never leaves the hardware boundary.

FIPS 140-2 Level 2 and Level 3 specify tamper-evidence and tamper-resistance requirements respectively for cryptographic hardware. For industrial and automotive applications, hardware-bound keys are increasingly mandatory rather than aspirational — both IEC 62443-4-2 (component security requirements) and automotive frameworks under UN Regulation No. 155 reference hardware security modules as part of a compliant threat model.

That said, we're not saying software-managed keys are useless. For low-cost consumer IoT devices where a dedicated security IC adds $0.50-$1.00 per unit BOM cost and the threat model is limited to network-level attacks, software key storage in isolated flash partitions with hardware-assisted encryption (ARM TrustZone, for example) is a reasonable compromise. The key is to be explicit about the threat model, not to assume software storage is equivalent to hardware binding.

The Lifecycle Problem Nobody Talks About in Year One

Most teams building their first connected device spend exactly zero time thinking about certificate expiry. They provision certs at manufacturing time, ship the device, and consider the matter closed. Three years later, the certificates expire. In the best case, devices start reporting TLS handshake failures and support tickets arrive. In the worst case, the certificates expire silently and the devices stop sending data — or worse, fall back to an unauthenticated mode baked in as a "temporary" workaround.

A certificate lifecycle management strategy has to exist before the first device ships, not after the first expiry incident. This means: deciding certificate validity periods (typically 1-3 years for device certificates, shorter for higher-risk deployments), implementing an automated renewal mechanism (EST protocol, SCEP, or a custom API), and building the operational tooling to track certificate states across the entire fleet.

For a fleet of 10,000 devices, manual certificate management is theoretically possible with a spreadsheet and a lot of vigilance. For 500,000 devices spread across multiple product generations and geographies, it is not. The architecture decision to build or buy certificate lifecycle management infrastructure is essentially a bet on how large the fleet will eventually be — and most hardware teams underestimate this by an order of magnitude.

Device Identity as Zero-Trust Foundation

Zero-trust network architecture is frequently discussed in the enterprise IT context — "never trust, always verify" applied to users and workstations. In IoT, the same principle applies, but the entity being verified is a device, not a human. Certificate-based device identity is the technical primitive that makes zero-trust IoT possible. Without it, a network-level trust model ("devices on this subnet are allowed") is the only alternative, which collapses the moment one device is compromised.

With per-device X.509 certificates, every connection can be individually authorized: is this certificate issued by our CA? Is it unexpired? Has it been revoked? Does the claimed device serial match our asset register? Is this device authorized for the operation it's attempting? These checks happen at connection time, per-device, per-session — which is the operationalization of zero-trust for hardware.

The investment in getting device identity right at the beginning — at manufacturing time, before the device ships — pays dividends for the entire deployed lifetime. Retrofitting certificate infrastructure into a fleet that shipped with shared keys is a years-long operational project with no clean ending. Building it in correctly from the start is an engineering decision with a thirty-year payoff.

What Comes Next

Understanding what device identity is — cryptographically verifiable, certificate-based, hardware-bound where the threat model warrants it — is the precondition for everything else: secure boot, firmware signing, OTA update security, compliance with IEC 62443 or Matter protocol requirements. Each of those topics builds on the foundational assumption that devices have unforgeable, individually managed identities.

The field is not settled. Certificate formats are evolving (CBOR Web Tokens and COSE for constrained devices), provisioning protocols are maturing (EST over HTTPS is increasingly standard, replacing aging SCEP), and hardware security capabilities are moving down the BOM cost curve (modern Arm Cortex-M MCUs include cryptographic acceleration and TrustZone as standard). But the core architectural principle — asymmetric keys, certificate chains, hardware-bound private key storage — has been stable for two decades and shows no signs of being superseded.

For teams starting a new connected product today, the question isn't whether to implement device identity. It's how to implement it efficiently, at the device volume you're planning for, within the hardware constraints you're designing to.

Ready to give your devices cryptographic identity?

ErlySign pilot: 100 devices, no cost, direct engineering onboarding in Pune.