Logo home 9

Over 10 years we helping companies reach their financial and branding goals. Onum is a values-driven SEO agency dedicated.

CONTACTS
Embedded IoT Solutions

IoT Device Security: Why PKI and Device Identity Matter at Scale

Category
Embedded IoT Solutions
Read Time
14 min read
Published
August 10, 2026
Status
Published

At five devices, shared credentials feel manageable. At 5,000 they become a liability. Here is why PKI and per-device identity are the foundation of IoT security that scales.

Connected products are becoming more sophisticated, but the core security challenge remains surprisingly simple: how does your platform know that the device connecting to it is actually a trusted device?

For a small IoT prototype, teams can sometimes get away with basic credentials, shared secrets, or manually configured authentication. That approach becomes increasingly difficult to manage when a product grows into thousands or millions of connected devices.

Every device needs an identity. That identity needs to be protected. And the organization needs a reliable way to provision, authenticate, update, revoke, and eventually retire that identity. This is where Public Key Infrastructure (PKI) and certificate-based authentication become important components of modern IoT device security architecture.

This guide covers device identity end to end: how PKI gives each device a verifiable identity, the full identity lifecycle from provisioning to revocation, and the controls that keep that identity trustworthy for years.

Fundamentals

What Is IoT Device Identity?

IoT device identity is the mechanism used to uniquely identify and authenticate a physical device within a connected ecosystem. Instead of treating every device as an anonymous endpoint, each unit receives a unique cryptographic identity.

For example, a connected industrial controller may need to communicate with:

  • A local gateway
  • A cloud IoT platform
  • A device management service
  • An enterprise application
  • An OTA update service

Before allowing those connections, the system needs to determine: is this device authorized to communicate with us? A strong device identity system provides the foundation for answering that question — and makes it possible to manage devices individually rather than relying on credentials shared across an entire fleet.

The Risk

Why Shared Credentials Become a Problem

Shared passwords or keys may appear convenient during early development. The problem appears when the number of devices increases.

Imagine deploying 20,000 devices using the same authentication secret. If that secret is compromised, the security problem isn’t limited to one device — potentially, the entire fleet is affected. Replacing the credential can also become extremely difficult if devices are already deployed in remote locations.

One compromised device should not automatically compromise the entire fleet.

A scalable IoT security architecture therefore needs individual device credentials and controlled lifecycle management.

The Framework

How PKI Supports IoT Security

Public Key Infrastructure (PKI) provides the framework for managing cryptographic identities using public and private keys, digital certificates, and trusted certificate authorities. A typical IoT PKI architecture includes:

  • Device key pairs
  • Device certificates
  • Certificate Authorities (CAs)
  • Certificate provisioning
  • Authentication mechanisms
  • Certificate renewal
  • Certificate revocation
  • Secure device retirement

This creates a structured trust model between the physical device and the systems it communicates with. Instead of asking “Does this device know the shared password?” the system can ask “Can this device prove that it possesses the private key associated with a certificate issued by a trusted authority?” That is a much stronger foundation for large-scale device authentication.

IoT device security architecture showing PKI, unique device certificates, and certificate lifecycle management across a device fleet
PKI and per-device certificates give every unit a unique, verifiable identity across its entire lifecycle.
Isolation

Unique Device Certificates

One of the most important principles of certificate-based IoT authentication is unique device identity. Each device can receive its own certificate:

Device A → Certificate A  •  Device B → Certificate B  •  Device C → Certificate C

If Device B is compromised, its certificate can be revoked without necessarily invalidating every other device in the fleet. This provides much better isolation than a shared fleet-wide credential. Unique certificates can also make device management and auditing easier, because the platform can associate communication with a specific device identity.

Cryptography

Public and Private Keys

PKI relies on asymmetric cryptography. A device typically has a private key and a corresponding public key. The private key must remain protected — it should not be transmitted to the cloud or shared between devices. The public key can be used by other systems to verify cryptographic operations associated with the device.

In embedded systems, protecting the private key becomes particularly important. Depending on the hardware, keys may be protected using mechanisms such as:

  • Secure elements
  • Hardware security modules
  • Trusted execution environments
  • MCU security features
  • Protected key storage

The exact implementation depends on the device architecture and threat model.

Onboarding

Secure IoT Device Provisioning

Device identity is only useful if it is established securely, which makes IoT device provisioning an important part of the security architecture. A typical provisioning flow may look like:

Manufacturing → Key generation → Certificate request → Certificate issuance → Device registration → Secure connection

The device can generate or receive its cryptographic credentials during manufacturing or initial provisioning. The platform then establishes that the device belongs to the trusted ecosystem before allowing normal communication. This process should be designed before production — trying to introduce secure identity after thousands of devices have already been manufactured can be significantly more complicated.

Key Storage

Protecting Device Credentials

Strong authentication becomes ineffective if private credentials can easily be extracted from the hardware. Connected-product security should therefore consider how keys are stored. Depending on the hardware and threat model, credentials may be protected using:

  • MCU security features
  • Secure elements
  • Trusted execution environments
  • Hardware-backed key storage
  • Protected flash regions
  • Readout protection

Where possible, sensitive private keys should be difficult to extract even if someone obtains physical access to the device. This connects PCB design, hardware selection, firmware architecture, and cloud security into the same security model.

Two-Way Trust

Mutual Authentication for Connected Devices

Traditional authentication often focuses on the client proving its identity to the server. IoT systems can benefit from mutual authentication, where both sides verify each other.

  • The device verifies: “Am I communicating with the legitimate platform?”
  • The platform verifies: “Is this an authorized device?”

This is particularly important for connected products because devices may operate across untrusted networks. A common implementation is mutual TLS (mTLS) using device certificates, which allows the TLS connection to establish trust in both directions while also providing encrypted communication.

The Lifecycle

The IoT Device Identity Lifecycle

Device identity should not be treated as a credential created once and forgotten — it has a lifecycle:

Manufacturing → Provisioning → Authentication → Authorization → Rotation → Revocation → Decommissioning

The first three stages establish and enforce trust every time a device connects.

1

Secure Device Provisioning

Provisioning establishes the initial trust relationship between the physical device and the platform — during manufacturing, first boot, installation, or customer onboarding. The system may provision device identifiers, cryptographic keys, certificates, cloud endpoints, ownership information, and initial configuration.

The important principle is that every production device should be uniquely identifiable. Manual provisioning may work for ten prototypes; it becomes an operational problem when manufacturing thousands of units.

2

Device Authentication

After provisioning, the platform needs to verify that a connecting device really owns the identity it claims. Certificate-based authentication is one common approach — for example, an IoT device communicating with an MQTT broker may use mutual TLS (mTLS), where the device validates the server and the server validates the device. This creates stronger trust than simply accepting a connection because it originates from the expected network.

3

Device Authorization

Authentication answers “who are you?” Authorization answers “what are you allowed to do?” These are different problems. A temperature sensor may need permission to publish telemetry but should not be able to modify another device’s configuration, and one customer’s device should not access another customer’s data. Permissions should follow the principle of least privilege — give each device only the access required to perform its intended function.

Every device has an identity — the IoT device identity lifecycle: provision, authenticate, authorize, protect, rotate, and revoke
Every connected device is an identity — provisioned, authenticated, authorized, protected, rotated, and revoked across its lifecycle.
Lifecycle

Certificate Lifecycle Management

Issuing a certificate is only the beginning. A deployed device may remain operational for years, during which certificates expire, devices get replaced, keys may become compromised, security policies change, firmware is updated, and hardware eventually reaches end of life. IoT certificate management therefore needs to cover the complete device lifecycle:

1

Certificate Issuance

New devices receive valid credentials during provisioning.

2

Certificate Renewal

Certificates are renewed before expiration without requiring manual intervention.

3

Certificate Rotation

Credentials can be rotated when required by security policies or operational requirements.

4

Certificate Revocation

Compromised or unauthorized devices can be removed from the trusted ecosystem.

5

Device Retirement

When hardware reaches end of life, its credentials should no longer provide access to production systems.

This automation becomes critical as fleet size increases.

Ending Trust

Revoking Trust from an IoT Device

Provisioning determines how trust begins. Revocation determines how trust ends. Suppose a device is stolen, compromised, replaced, decommissioned, transferred, or behaving suspiciously — the platform needs a way to stop trusting that individual identity.

This is one of the major benefits of unique per-device credentials. Instead of changing a shared secret across an entire fleet, the organization can isolate the affected device. A complete IoT security strategy therefore needs both:

A way to establish trust — and a way to remove trust.

Firmware Trust

PKI and Secure OTA Updates

Device identity also plays an important role in secure OTA firmware updates. An update system needs to answer several questions:

  • Who is receiving the update?
  • Is the update intended for this device?
  • Is the firmware authentic?
  • Has the firmware been modified?
  • Should this device be allowed to install it?

Digital signatures and cryptographic verification can help establish firmware authenticity. Device identity can then be used alongside authorization policies to control which devices receive specific firmware versions. For large IoT fleets, secure OTA shouldn’t be treated as an isolated firmware feature — it should be part of the broader device security architecture.

Integrity

Device Attestation: Is the Device Still Trustworthy?

Authentication can confirm that a device possesses a valid credential. But another question may remain: is that device running the software we expect? This is where device attestation can become valuable.

Depending on the hardware and security architecture, attestation can provide evidence about the state or integrity of a device. This can help higher-security systems determine not only “which device is this?” but also “should we currently trust its software state?” Attestation is not required for every IoT product, but it can become important in higher-assurance deployments.

Layered Trust

Secure Boot and Device Identity Work Together

Device identity should not exist in isolation. Consider a device with perfectly protected credentials but completely unverified firmware — if an attacker can replace the firmware, those legitimate credentials may be used by malicious software. Secure Boot helps prevent unauthorized firmware from running by verifying software before execution. Together, these layers form a stronger architecture than any single mechanism alone:

Secure Boot → trust the software  •  Device Identity → trust the device  •  Authentication → verify the connection  •  Authorization → limit what it can do

Beyond the Network

IoT Security Doesn’t End at the Network

Firewalls, VPNs, network segmentation, and intrusion detection are important security controls — but they don’t answer the fundamental identity question: who is the device? A device can be communicating through an encrypted connection while still being unauthorized. That is why modern IoT security needs multiple layers:

Device identity → Authentication → Authorization → Encryption → Monitoring → Lifecycle management

Network security protects the communication environment. Device identity establishes trust at the endpoint. Both are necessary.

Scale Shift

Designing IoT Security for Fleet Scale

Security architecture should be designed with the eventual fleet in mind. A process that works for 10 devices may become impossible at 10,000.

Small PrototypeProduction Fleet
Manual credentialsAutomated identity provisioning
Shared keysUnique device certificates
Manual updatesSecure OTA
Manual certificate renewalAutomated lifecycle management
Engineer-controlled accessPolicy-based authorization
One test environmentMultiple production environments
Manual device replacementAutomated device retirement

The goal isn’t to make the prototype unnecessarily complicated. It’s to avoid creating an architecture that becomes impossible to operate when the product succeeds.

Pitfalls

Common IoT Security Mistakes

Several security problems repeatedly appear in connected-product development.

1
Using Shared Credentials Across Devices
Convenient during development, but risky at fleet scale — one leak can expose everything.
2
Hardcoding Long-Lived Secrets
Credentials embedded permanently into firmware can become difficult to rotate or revoke.
3
Treating Provisioning as an Afterthought
If secure identity isn’t considered during manufacturing and onboarding, retrofitting it becomes expensive.
4
Ignoring Certificate Expiration
A healthy device can suddenly lose connectivity if its certificate expires with no automated renewal.
5
No Revocation Strategy
If a device is compromised, you need a way to remove its trust without taking down the entire fleet.
6
Separating Security From Firmware Architecture
Secure boot, protected keys, authentication, and OTA need to work together, not as isolated features.
The Checklist

Building a Secure Connected Product

Strong IoT device security is not a single feature. It is an engineering system that starts with device identity and continues throughout the product lifecycle. A secure connected product should be able to:

  • Establish a unique identity
  • Authenticate securely
  • Protect private credentials
  • Encrypt communication
  • Control device permissions
  • Provision devices automatically
  • Renew credentials
  • Revoke compromised devices
  • Receive authenticated firmware updates
  • Monitor security events
  • Retire devices safely

At MetaDesk Global, we look at IoT security from the device level through the complete connected-product architecture — considering embedded firmware, hardware security, device provisioning, connectivity, cloud integration, OTA updates, and fleet management together, rather than treating security as something added after the product is already built.

FAQ

Frequently Asked Questions

What is PKI in IoT device security?
Public key infrastructure gives every device its own certificate and key pair instead of a shared secret. The device proves its identity cryptographically, the platform verifies it against a trusted authority, and a single compromised unit can be revoked without affecting the rest of the fleet.
Why are shared credentials dangerous in IoT?
Because an attacker can buy one device, extract the key from it physically, and then impersonate every other unit in the fleet. Shared secrets also make revocation impossible without updating every device, which is why large IoT botnets have repeatedly been built this way.
When should device certificates be provisioned?
At manufacture, ideally generated inside the device so the private key never exists anywhere else. Provisioning identity at installation instead means credentials pass through people and systems that can leak them, and it makes secure onboarding dependent on field conditions.
What is mutual authentication and why does it matter?
Both sides prove their identity: the device authenticates to the platform and the platform authenticates to the device. One-way authentication leaves devices vulnerable to connecting to an impostor server that can issue commands or collect their data.
What happens when a device certificate expires?
The device can no longer authenticate and effectively goes offline. Expiry dates must be tracked and renewal automated well in advance, because certificates all issued at the same time expire at the same time — one of the most common causes of a whole fleet going dark.
Does PKI secure over-the-air updates too?
Yes, and this is one of its most important uses. Firmware images are signed and the device verifies the signature against a key held in immutable memory before installing, so an attacker who reaches the update channel still cannot install their own code. See our guide to OTA updates.
What is IoT device identity?
A unique, cryptographically verifiable identity belonging to one physical device, usually a certificate with a private key generated on the device itself. It is what lets a platform know which unit sent a message and revoke one device without affecting any other.
How do you protect device credentials from physical attack?
Store keys in a secure element or hardware-backed keystore so they cannot be read out, generate them on-device so they never exist elsewhere, and assume an attacker will obtain one unit and open it. The design goal is that compromising one device compromises only that device.
Wrapping Up

Final Thoughts

The security challenge in IoT changes dramatically when a prototype becomes a fleet. At five devices, manual credentials might seem manageable. At 5,000 devices, they become an operational liability.

At that point, the question isn’t simply whether communication is encrypted. The bigger question is: can your system reliably establish and manage trust for every device throughout its entire lifecycle? PKI and certificate-based device identity provide one of the foundations for doing that.

Because at fleet scale, security cannot depend on knowing every device personally. The architecture has to know which devices it can trust — automatically.

Security requirements are strictest for connected medical devices, where a software bill of materials and a vulnerability plan are part of the regulatory submission; see IoT in healthcare.

About MetaDesk Global

Engineering the Next Generation of Connected Products

MetaDesk Global helps startups and enterprises develop intelligent connected products that combine embedded systems, Industrial IoT, Edge AI, and cloud technologies. Our expertise includes:

Industrial IoT (IIoT) Solutions Embedded Firmware Development Edge AI Development Predictive Maintenance Systems PCB Design IoT Gateway Development Cloud Integration OTA Firmware Updates AIoT Product Development End-to-End Product Engineering

From hardware design to AI-powered industrial platforms, we build scalable solutions for the next generation of connected products.

Start Your Project

Building a Connected Product?

We design IIoT sensor networks, Edge AI pipelines, and secure cloud platforms — from prototype to production.

Request a Free Quote →