Functional Safety and Automotive Cybersecurity · Cryptography
Cryptographic Key Management
Also known as Key management, Key lifecycle management, Certificate management, Vehicle PKI
The policies, processes and mechanisms for generating, distributing, storing, using, rotating, revoking and destroying cryptographic keys and certificates over their lifecycle, so that encrypted or authenticated vehicle functions are not undermined by key compromise.
Explanation
NIST SP 800-57 Part 1 (Revision 5, final since May 2020) is widely used general guidance. It covers the security services cryptography provides, the algorithms and key types in use, the protection each key type needs, and core key-management functions. NIST's key-management publication list also shows a Revision 6 draft released in December 2025.
In vehicles, keys protect secure boot, authenticated communication between ECUs, diagnostic access, the authenticity of software updates and back-end connections. AUTOSAR's Key Manager (KeyM) module interacts with a key provisioning entity (key master) and manages certificate chains made of root, intermediate and target certificates, while hardware security modules keep key values out of reach of application software.
Recurring difficulties include provisioning unique keys in production plants, avoiding secrets shared across a whole fleet, rotating and revoking keys over a long vehicle service life, and planning migration to new algorithms. Weak key management can negate otherwise strong cryptography.
How it works
Keys are generated in a trusted environment, such as a back-end HSM or an on-chip security module, injected or derived per ECU during production, and stored in protected hardware. Software requests cryptographic operations by key reference rather than reading key values. Certificates are validated against stored root certificates; keys are updated through authenticated, confidential protocols, replaced at the end of their cryptoperiod, and revoked or destroyed when compromised or decommissioned.
Automotive applications
- Keys for authenticated in-vehicle communication
- Diagnostic and debug access authentication
- Signing and verifying software update packages
- TLS certificates for telematics back-end connections
- Key destruction at end of life
Example
During end-of-line production, a back-end key server derives a unique message-authentication key for each ECU and loads it into the ECU's security module through an authenticated, encrypted key-update protocol. If one ECU's key leaks, only that ECU needs new keys, not the whole fleet.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- NIST SP 800-57 Part 1 Rev. 5: Recommendation for Key Management: Part 1 - General (opens in a new tab)
- Key Management: Publications (opens in a new tab)
- Specification of Key Manager (AUTOSAR CP R22-11) (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.