Key Management Interoperability Protocol

Short description: Communication protocol for cryptographic keys

Participants in the OASIS 2017 interop at the 2017 RSA Conference.

The Key Management Interoperability Protocol (KMIP) is an extensible communication protocol that defines message formats for the manipulation of cryptographic keys on a key management server. This facilitates data encryption by simplifying encryption key management. Keys may be created on a server and then retrieved, possibly wrapped by other keys. Both symmetric and asymmetric keys are supported, including the ability to sign certificates. KMIP also allows for clients to ask a server to encrypt or decrypt data, without needing direct access to the key.

The KMIP standard was first released in 2010. Clients and servers are commercially available from multiple vendors.[1] The KMIP standard effort is governed by the OASIS standards body. Technical details can also be found on the official KMIP page[2] and kmip wiki.[3]

## Contents

* 1 Description
* 1.1 Objects
* 1.2 Operations
* 1.3 Key life cycle
* 1.4 Message structure
* 1.5 System management
* 1.6 KMIP profiles
* 1.7 Relationship to PKCS#11
* 2 KMIP implementations
* 2.1 Interoperability between implementations
* 3 Example
* 4 Documentation
* 5 Version history
* 6 See also
* 7 References
* 8 External links

## Description

A KMIP server stores and controls Managed Objects like symmetric and asymmetric keys, certificates, and user defined objects. Clients then use the protocol for accessing these objects subject to a security model that is implemented by the servers. Operations are provided to create, locate, use, retrieve and update managed objects.

Each managed object comprises an immutable Value like a key-block containing a cryptographic-key. These objects also have mutable Attributes which can be used for storing metadata about their keys. Some attributes are derived directly from the Value, like the cryptographic-algorithm and key-length. Other attributes are defined in the specification for the management of objects like the Application-Specific Identifier which is usually derived from tape-identification data. Additional identifiers can be defined by the server or client per application need.

Each object is identified by a unique and immutable object-identifier generated by the server and is used for getting object-values. Managed-objects may also be given a number of mutable yet globally unique Name attribute which can be used for Locating objects.

### Objects

The types of managed-objects being managed by KMIP include:

* Symmetric-Keys used for algorithms like AES.
* Public and Private Keys used for asymmetric-algorithms like RSA, DSA and ECDH. Separate objects are used for storing the public and private key, thus a user may have permission to access one but not the other. Related objects usually contain Link attributes containing the other object's unique identifier.
* Certificates and PGP Keys.
* Split Keys, with each split being a distinct object that can be managed independently from the other splits.
* Secret Data, such as passwords.
* Opaque Data for client and server defined extensions.
* Certificate Signing Requests.

### Operations

The operations provided by KMIP include:

* Create: creating a new managed object such as a symmetric key, and return the identifier.
* Create Key Pair: creating two objects that represent asymmetric keys.
* Get: retrieving an object's value given its unique identifier. The returned value may be wrapped (encrypted) with another key that is on the server for additional security.
* Register: storing an externally generated key value.
* Add Attributes, Get Attributes, Modify Attributes and Set Attribute: These can be used to manipulate mutable attributes of a managed object.
* Locate: retrieving a list of objects based on a predicates.
* Re-Key, Re-Key-Key-Pair: creating a new key that can replace an existing key. There are also attributes that can be used to have the server automatically rotate keys after a given period or number of uses. The Name is moved to the new key and is normally used to retrieve a key for protection operations such as encrypt and sign. The old key can also be retrieved using the Unique Identifier for process operations such as decryption and signature verification.
* (Re-)Certify - certifies a certificate.
* Split and Join N of M keys.
* Encrypt, Decrypt, MAC etc.: Cryptographic operations performed on the key management server. A key itself can be marked being not-Extractable, in which case its value never leaves the server.
* Export, Import: Move keys to and from other KMIP servers.
* Activate, Deactivate etc.: Operations to implement the NIST key life cycle.
* Encapsulate, Decapsulate: Post Quantum algorithm support.

### Key life cycle

Each key has a cryptographic state defined by the National Institute of Standards and Technology (NIST). Keys are created in an Initial state, and must be Activated before they can be used. Keys may then be Deactivated and eventually Destroyed. A key may also be marked being Compromised.

Operations are provided for manipulating Key-state in conformance with the NIST life-cycle guidelines. A Key-state may be interrogated using the State attribute or the attributes that record dates of each transformation such as Activation Date. Dates can be specified into the future thus keys automatically become unavailable for specified operations when they expire.

### Message structure

KMIP is a stateless protocol in which messages are sent from a client to a server and then the client normally awaits on a reply. Each request may contain many operations thus enables the protocol to efficiently handle large numbers of keys. There are also advanced features for processing requests asynchronously.

The KMIP protocol specifies several different types of encodings. The main one is a type–length–value encoding of messages, called TTLV (Tag, Type, Length, Value). Nested TTLV structures allow for encoding of complex, multi-operation messages in a single binary message.

There are also well defined XML and JSON encodings of the protocol for environments where binary is not appropriate.

All of these protocols are expected to be transmitted using TLS protocol in order to ensure integrity and security. However, it is also possible to register and retrieve keys that are wrapped (encrypted) using another key on the server, which provides an additional level of security.

### System management

KMIP provides standardized mechanisms to manage a KMIP server by suitably authorized administrative clients using System Objects.

User objects can be created and authorized to perform specific operations on specific managed objects. Both Managed Objects and Users can be assigned to groups, and those groups can form a hierarchy which facilitates efficient management of complex operating environments.

KMIP also provides a provisioning system that facilitates providing end points with credentials using simple one-time passwords.

Default values of attributes can be provided, so that simple clients need not specify cryptographic and other parameters. For example, an administrative user might specify that all "SecretAgent" keys should be 192 bit AES keys with CBC block chaining. A client then only needs to specify that they wish to create a "SecretAgent" key to have those defaults provided. It is also possible to enforce constraints on key parameters that implement security policy.

### KMIP profiles

KMIP also defines a set of profiles, which are subsets of the KMIP specification showing common usage for a particular context. A particular KMIP implementation is said to be conformant to a profile when it fulfills all the requirements set forth in a profile specification document. OASIS has put forth various profiles describing the requirements for compliance towards storage arrays[4] and tape libraries,[5] but any organization can create a profile.

### Relationship to PKCS#11

PKCS#11 is a C API used to control a hardware security module. PKCS#11 provides cryptographic operations to encrypt and decrypt, as well as operations for simple key management. There is considerable amount of overlap between the PKCS#11 API and the KMIP protocol.

The two standards were originally developed independently. PKCS#11 was created by RSA Security, but the standard is now also governed by an OASIS technical committee. It is the stated objective of both the PKCS#11 and KMIP committees to align the standards where practical. For example, the PKCS#11 Sensitive and Extractable attributes have been added to KMIP version 1.4. Many individuals are on the technical committees of both KMIP and PKCS#11.

KMIP 2.0 also provides a standardized mechanism to transport PKCS#11 messages from clients to servers. This can be used to target different PKCS#11 implementations without the need to recompile the programs that use it.

## KMIP implementations

The OASIS KMIP Technical Committee maintains a list of known KMIP implementations, which can be found at OASIS Known Implementations. As of December 2024, there are 35 implementations and 91 KMIP products in this list.

### Interoperability between implementations

The OASIS KMIP Technical Committee maintains a list of results of KMIP TC interoperability testing, which can be found at OASIS Interoperability Tested. As of December 2024, there are 30 implementations across 16 vendors in this list.

The KMIP standard is defined using a formal specification document, test cases, and profiles put forth by the OASIS KMIP technical committee. These documents are publicly available on the OASIS website.

Interop booths at the 2015 RSA conference. Each vendor interoperates with each other vendor.

Vendors demonstrate interoperability during a process organized by the OASIS KMIP technical committee in the months before each RSA security conference. These demonstrations are informally known as interops. KMIP interops have been held almost every year since 2010. The following chart shows the Normalised number of general test cases and profile tests of all interop participants that have participated in two or more interops since 2014. [6]

Total KMIP Interop Server Tests

Total KMIP Interop Clients Tests

The 2025 interoperability test covered Post Quantum Cryptography (PCQ) algorithms that will be required as quantum computers become more powerful. [7]

## Example

The following shows the XML encoding of a request to Locate a key named "MyKeyName" and return its value wrapped in a different key with ID "c6d14516-4d38-0644-b810-1913b9aef4da". (TTLV is a more common wire protocol, but XML is more human readable.)

<RequestMessage>
<RequestHeader>
<ProtocolVersion>
<ProtocolVersionMajor type="Integer" value="3"/>
<ProtocolVersionMinor type="Integer" value="0"/>
</ProtocolVersion>
</RequestHeader>
<BatchItem>
<Operation type="Enumeration" value="Locate"/>
<RequestPayload>
<Attributes>
<Name type="TextString" value="MyKeyName"/>
</Attributes>
</RequestPayload>
</BatchItem>
<BatchItem>
<Operation type="Enumeration" value="Get"/>
<UniqueIdentifier type="Enumeration" value="IDPlaceholder"/>
<RequestPayload>
<KeyWrappingSpecification>
<WrappingMethod type="Enumeration" value="Encrypt"/>
<EncryptionKeyInformation>
<UniqueIdentifier type="Reference" value="c6d14516-4d38-0644-b810-1913b9aef4da"/>
</EncryptionKeyInformation>
</KeyWrappingSpecification>
</RequestPayload>
</BatchItem>
</RequestMessage>

## Documentation

Documentation is freely available from the OASIS website.[8] This includes the formal technical specification and a usage guide to assist people that are unfamiliar with the specification. A substantial library of test cases is also provided. These are used to test the interoperability of clients and servers, but they also provide concrete examples of the usage of each standard KMIP feature.

## Version history

Summary of KMIP versions and features.  Version  | Committee Draft  | Main Features

|
|

1.0  | Oct 2010 | Initial version
1.1 | Jan 2013  |
1.2 | Jun 2014  | Cryptographic Operations (Encrypt, Decrypt, Sign etc.). Introduction of Profiles, including Application Identifiers for tape libraries.
1.3 | 2015  | Streaming Cryptographic Operations; Client Registration; Locate offset/Limit; Deprecate Templates; RNG queries;
1.4 | 2016  | Better asynchronous operations; Import/export of keys to other servers; Support of PKCS #12; Standardized key wrapping; Certify Attributes; Client & Server Correlation Values; Descriptive Attributes; AEAD support; AES-XTS support; Create Secret Data; RSA PSS Support; Many extensions to Query.
2.0 | 2018  | Removal of deprecated items; Efficient representation of attributes; Replacement of "x-" convention for custom attributes; Client Log operation; Date Time resolution 1 microsecond; Locate Destroyed; Better Error Handling and Result Reasons; Improved client Provisioning; new CSR object; Removal of Attribute Index; Support for tokenization; NIST Key Type attribute; Fixed length Unique Identifiers; Several new attributes and query extensions; Delegated Logins; Hashed Passwords; Multiple Unique ID placeholders; ReEncrypt support using data references; Set Attribute operation; PKCS #11 encapsulation.
2.1 | 2019  | Ping; Process and query asynchronous requests; Standardize server side key rotation; Set and query attribute defaults; Set and query constraints on attributes;[9]
3.0 | 2025  | Add an explicit concept of KMIP users, modeled as System Objects; Lifecycle improvements to references to other objects using names as well as unique identifiers; Formalize object groups and hierarchies; Obliterate administrative operation; Post Quantum Cryptography[10]

## See also

* IEEE P1619 Security in Storage Working Group

## References

1. ↑ "KMIP Implementations known to the KMIP TC". https://github.com/oasis-tcs/kmip/wiki/Known-KMIP-Implementations.
2. ↑ "OASIS Key Management Interoperability Protocol (KMIP) TC | OASIS". https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=kmip.
3. ↑ https://github.com/oasis-tcs/kmip/wiki
4. ↑ "KMIP Storage Array with Self-Encrypting Drives Profile Version 1.0". https://docs.oasis-open.org/kmip/kmip-sa-sed-profile/v1.0/os/kmip-sa-sed-profile-v1.0-os.html.
5. ↑ "KMIP Tape Library Profile Version 1.0". https://docs.oasis-open.org/kmip/kmip-tape-lib-profile/v1.0/os/kmip-tape-lib-profile-v1.0-os.html.
6. ↑ "OASIS: Updated Interop Groups". https://groups.oasis-open.org/discussion/updated-interop-groups#bm12a64168-3472-46b6-a6bb-c8e2fc397bc5.
7. ↑ "2025 PQC Interop". https://kmip-interop.org/#2025PQC.
8. ↑ "OASIS Key Management Interoperability Protocol (KMIP) TC | OASIS". https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=kmip#technical.
9. ↑ "KMIP Specification v2.1 WD07". https://www.oasis-open.org/committees/download.php/67909/kmip-spec-v2.1-WD07.docx.
10. ↑ "KMIP Specification v3.0 WD19". https://groups.oasis-open.org/higherlogic/ws/public/download/72645/kmip-spec-v3.0-wd19-clean.pdf.

## External links

* "OASIS KMIP Technical Committee". https://www.oasis-open.org/committees/kmip/.
* "KMIP Implementations known to the KMIP TC". https://github.com/oasis-tcs/kmip/wiki/Known-KMIP-Implementations.
* "KMIP Implementations ‐ Interoperability Tested". https://github.com/oasis-tcs/kmip/wiki/KMIP-Implementations-‐-Interoperability-Tested.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Key Management Interoperability Protocol. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Key_Management_Interoperability_Protocol&oldid=3980299"