Definition
Key provisioning is the process that gives a device its first cryptographic keys and records, for the parties that will rely on them, which device holds which key and for what use. It fixes where each key is generated, how it reaches the device (or, for a key pair, how the public key reaches the relying party), where it is stored, and how each side knows it has the intended counterpart. Its result is a binding: an association between a key and one specific device and role.
The idea
Authentication §1.6 rests on a key that the two sides already share or trust. The first key has nothing earlier to rest on. If a factory installs a strong random key into the wrong device, or a device accepts an attacker’s key as the key of its legitimate operator, every later cryptographic check works perfectly and protects the wrong party. Algorithms §14.1 used afterwards cannot detect the mistake, because they check keys, not the decisions that put the keys in place.
RFC 8995, a standard for bringing a new device into an operator’s network [330], calls the process in which a device first obtains the key material it will trust imprinting, after newly hatched ducklings, which take whatever looks like a mother duck during a critical period to be their mother. A device that imprints on an attacker, the RFC adds, suffers the fate of a duckling that imprints on a hungry wolf. The analogy covers one direction, the device trusting an authority. Provisioning also needs the other: the authority must know that the key it records belongs to the device it means.
Because cryptography cannot supply the first binding, other evidence must: physical control of the device, such as a factory fixture that connects to exactly one device; a person comparing a value on the device with a value shown by the installer; or an identity that an earlier trusted step already placed in the device. Provisioning carries that evidence over into a cryptographic key.
How it works
A provisioning procedure answers seven questions in order.
Which device is this? The provisioning system reads the identity from the device itself, over a channel that reaches only that device, such as a factory fixture. A printed label, or an identifier the device announces over a network, is a claim, not evidence.
Where is the key generated? Either the provisioning system makes a symmetric key, one secret shared by the device and a server, drawn from a CSPRNG §5.27 (cryptographically secure pseudorandom number generator) or obtained by per-device key derivation §5.24, which computes each device’s key from a secret root key §5.25 and the device’s identity; or the device generates a key pair inside itself, a private key that stays secret and a matching public key that anyone may see, and only the public key leaves the device.
How does the key travel, and where is it stored? NIST Special Publication (SP) 800-57 Part 1 requires that the initial installation of keying material protect it during entry into the device, and that keying material a manufacturer supplies only for testing a new system not be used operationally. A stored secret must be readable only by the code that uses it.
What will the device trust? The device receives its trust anchors, the public keys of the authorities whose signatures it will accept, for example on software updates. A trust anchor is not secret, but SP 800-57 calls the authenticity of a trust anchor’s public key the crucial assumption: whoever can replace it decides what the device accepts later.
Does the device hold the key? The device proves possession, for example by returning a tag over a fresh challenge: a short value computed from the key and the challenge with a message authentication code §5.7. For a public key, SP 800-57 requires that its distribution give the receiver assurance that the owner actually possesses the corresponding private key.
Record the binding. Only now does the provisioning system record the device identity with the key and its intended use. SP 800-57 calls this key registration and places it after the entity’s identity has been authenticated. For a public key the record is often a certificate: a statement binding the public key to the identity, signed by an authority with a digital signature §5.14.
Clean up. Copies of secrets in the provisioning station’s memory, logs and files are erased, and an interrupted attempt is recorded as such, so that it is retried or the device is rejected.
Worked example
All values in this example are invented. A factory gives each device a key computed with HMAC §5.8 (hash-based message authentication code) built on SHA-256 §5.2 (Secure Hash Algorithm with a 256-bit output), a combination called HMAC-SHA-256 §5.9 whose output is 32 bytes. The HMAC key is a root key , and the message is the 8 characters dev-key: followed by the 4-digit serial number , 12 bytes in all. Here is the 32 bytes 0x00, 0x01, and so on up to 0x1f; a real root key comes from a CSPRNG. The two keys that matter here begin
=
e6dd6ce071ee1924…
=33eab539e9c12216…
Wrong binding. A unit sits in the fixture. Its sticker says 1001, but the sticker went on the wrong unit: the chip inside holds serial number 1002. The operator scans the sticker, and the station computes and installs it. To confirm, the station sends the 8-byte challenge c0ffee0123456789, and the unit returns HMAC-SHA-256, keyed with the key it holds, of the 8 characters confirm: followed by the challenge, 16 bytes in all. The unit holds , so its tag begins 6e1d207537af167e, exactly the tag the station computes for 1001. The check passes, and the station records that unit 1001 holds . From then on unit 1002 is accepted as unit 1001, and once the real unit 1001 is provisioned, two units share one key.
Right binding. The station ignores the sticker and reads the serial number from the chip over the fixture connection: 1002. It computes and installs it, and the unit’s tag over the same challenge begins 8253b8d7dcd21948, which matches the station’s own computation with . The station records that unit 1002 holds , then compares the sticker with the chip, finds 1001 against 1002, and sets the unit aside for relabeling.
In both runs the confirmation proves only that the unit in the fixture holds the key the station sent. It cannot show that the key was meant for that unit. Only the source of the identity, here the chip read over a connection to exactly one unit, establishes that.
Stated precisely
Write a binding record as a triple: device identity , key , intended use . The record is correct when three separate facts hold.
Key quality. has the min-entropy §5.26 (the uncertainty, in bits, of the attacker’s best single guess) that the intended security level §7.33 needs, because it came from a CSPRNG, from a key derivation function §5.20 fed by a secret root key, or from a generator inside the device, each seeded or keyed with at least that much min-entropy.
Identity binding. was obtained from the same device that received , or that holds the matching private key, either over a channel on which only that device could answer, or through that device’s cryptographic proof of an identity installed by an earlier trusted step.
Custody. Every copy of a secret is accounted for: the device’s protected storage, the relying party’s record, and no copy left behind in tools.
A correct proof of possession §5.30 from a responder establishes only that the responder holds . It supports fact 2 only when the challenge and the response travel over the same single-device channel through which was read.
The guarantee depends on three assumptions: the party doing the provisioning controls the fixture or channel; an attacker cannot change the identity stored inside the device; and the trust anchors installed into the device came from the legitimate authority.
RFC 8995 shows the manufacturer form of fact 2. A new device carries an Initial Device Identifier (IDevID), a certificate in the format defined by the X.509 standard, installed by the vendor, which lets an operator authenticate the device cryptographically. RFC 8995 defines enrollment as the process in which a device presents key material to a network and acquires a network-specific identity, for example a certificate.
Limits and common mistakes
Proof of possession is not proof of identity: as the worked example shows, a device that received the wrong key proves possession of it perfectly. A serial number, network address or name that a device sends is an unauthenticated claim, and a printed label can be wrong or swapped.
Generating the key pair inside the device keeps the private key from traveling, which removes one custody risk, but the public key still has to be bound to the right device. SP 800-57 asks that the distribution of a public key give the receiver assurance that the claimed owner is the actual owner.
One key shared by many devices is exposed by extracting it from any one of them. Distinct keys per device confine an extraction to that device.
Whoever can install or replace a trust anchor controls what the device accepts, so provisioning must prevent later replacement of trust anchors except through an authorized procedure.
A provisioning attempt can stop after installing a key but before recording it, or after recording a key that the device never stored. Each case needs a defined outcome: retry with the same key, replace the key, or reject the device. A second provisioning request for an identity that is already provisioned deserves investigation, not a silent overwrite.
Provisioning gives only a starting point. A key that is later lost or exposed is handled by key revocation §5.32 and key rotation §5.29.
Questions answered
How is initial material bound to the correct physical device?
Initial key material is bound to the correct physical device by taking the device’s identity from the device itself, over a channel that can reach only that device, and recording the key against that identity only after the same device, over the same channel, has proved that it holds the key. The binding has to come from something other than cryptography, because before provisioning the device has no earlier key that could authenticate it. Three sources are used:
physical control, such as a factory fixture wired to exactly one device, from which the provisioning station reads the identity stored in the chip;
a person comparing values, such as a code printed on or shown by the device that the installer enters or checks, which ties the exchange to the device in the installer’s hands;
an identity installed earlier by the manufacturer, such as the Initial Device Identifier (IDevID) certificate of RFC 8995, which lets a later step authenticate the device cryptographically.
A serial number typed from a label or received as a string is a claim, not a binding. A successful proof of possession cannot reveal that the key went to the wrong device, because the wrong device does hold the key it was given.
Related entries: Per-device key derivation (§5.24), Root key and root seed (§5.25), Root of trust (§1.33), UICR (User Information Configuration Registers) (§16.1), Proof of possession (§5.30), Digital signature (§5.14), Key confirmation versus application confirmation (§5.42), Out-of-band (OOB) association (§7.25), Secure element (§5.38). Further reading: [147, 148, 330].