Contents

Key management and vehicle PKI

Where cryptographic keys and certificates come from, how they get into ECUs, and how they are updated and revoked over a 15-year vehicle life.

Why it matters

Cryptography is only as strong as its keys. A single extracted master key can compromise an entire fleet.

What it covers

  • Key types: symmetric keys (SecOC, SHE), asymmetric keys and certificates (secure boot, TLS, diagnostics authentication).
  • Hierarchies: root keys in the backend, derived keys per vehicle and ECU.
  • Lifecycle: generation, provisioning, use, rotation, revocation, destruction.

How keys get into vehicles

At production, an end-of-line station injects or derives keys into each ECU’s HSM through a protected protocol. Later updates come via diagnostics or OTA, authenticated by existing keys.

Example end-of-line key provisioning
Key backendkey management backend
Production testerend-of-line station
ECU HSMprotected key storage
Request provisioningIdentify target ECU
Protected key packageBound to target ECU
Relay protected packageKeys remain protected
Verify and installValidate authorization; store keys securely
Protected confirmationConfirm successful installation
Relay confirmationRecord provisioning outcome

Example provisioning flow; key protection, ECU binding and confirmation mechanisms depend on the selected protocol.

Best practices

  • Use unique keys per ECU or vehicle wherever possible.
  • Never store keys outside the HSM in plaintext — including in production tools and logs.
  • Plan crypto agility: algorithms and key lengths will need to change during the vehicle’s life.

Common pitfalls

  • Shared, static keys across a whole model range.

What it means for your discipline

  • Cybersecurity Core

    Designs key hierarchies, PKI, provisioning processes, rotation and revocation.

  • Hardware & silicon Core

    HSMs and secure storage protect keys inside ECUs; key-slot capacity limits the design.

  • Diagnostics & lifecycle Core

    Keys are injected at end-of-line and replaced in service and over the air — processes and tools must be secure.

  • Base software Partial

    Crypto stack and key manager modules handle key usage and updates in the ECU.

  • E/E architecture Partial

    Backend, production and workshop infrastructure are part of the key management system.

  • Software update & OTA Partial

    Coordinates signing-key and certificate rotation with update campaigns so ECUs continue to accept authorised packages. Plans trust-anchor transitions and revocation without breaking recovery or leaving vehicles unable to update.

No direct stake: Functional safety · HPC & application software · Networks & communication

Where it sits in the software stack

Generic layered software of a central HPC (application processor with hypervisor, plus a safety island) and of a classic MCU-based ECU (AUTOSAR Classic). Highlighted modules matter for this topic. Click any module to open its page.

HPC · application processor (MPU) and safety island (MCU)
  • Security services — Manages keys and certificates, including provisioning, protected use, rotation and revocation.
  • Secure boot chain · TEE — Uses protected trust anchors to authenticate boot software and must support planned trust-anchor transitions.
  • Diagnostics — Provides authenticated service interfaces for key provisioning and replacement.
  • OTA client · UCM — Coordinates signing-key and certificate transitions so vehicles continue accepting authorised updates.
MCU-based ECU · AUTOSAR Classic
  • Memory · crypto · WdgM — Hosts crypto and key-management services that control key use, certificate validation and authenticated key updates.
  • Microcontroller · HSM — Protects cryptographic keys in HSM storage, with key-slot capacity constraining provisioning and rotation.
  • Diagnostics — Provides controlled diagnostic procedures for production key provisioning and service replacement.
  • Flash bootloader · secure boot — Uses trusted verification keys to authenticate firmware and must accommodate authorised signing-key transitions.