Skip to main content
Key stores

Update key store

PUT/v4/config/ows/key-management/key-stores/{keyStoreId}

Changes the name, the settings or the credentials of a key store that the organisation added. Only the members in the body change: settings replaces all the settings, and a credential that the body leaves out keeps its stored value.

When settings.authentication.method changes (vault, aws-kms, azure-key-vault), the wallet deletes the stored credentials of the old method. Give the credentials of the new method, for example clientCertificate and clientPrivateKey when an Azure key store moves from clientSecret to clientCertificate.

A change of the settings or the credentials runs the connection test again (see Create key store), and the wallet saves only when it passes. For dpod, a new PIN or new credentials make the HSM signer log in again once. When the test of a dpod key store that worked before fails, the key store keeps its earlier values; otherwise the new values stay and the key store gets the status error.

The provider cannot change, and a local key store is read only. A call with a sandbox API key changes the key store of the main organisation.

Authorizations

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:keys:update

Path parameters

  • keyStoreIdstringrequired

    The key store ID, from List key stores. local-openbao or local-hsm for a local key store of the installation, else the id that Create key store returned.

    At most 64 characters.

    Example:"local-openbao"

Body

application/json

The members to change.

  • namestring

    The new name, unique in the organisation, at most 100 characters. null is refused (name: required).

    At most 100 characters.

    Example:"Customer vault"

  • providerstring

    The provider. It cannot change, so a given value must be the stored one.

    At most 64 characters.

    Example:"openbao"

  • settingsobject

    All the settings of the type (the schema of the same title). They replace the stored settings.

  • credentialsobject

    The write-only credentials to change (the schema of the same title). A credential that you leave out keeps its stored value, unless the authentication method changes.

Response

application/json

The changed key store.

  • idstring

    The key store ID. local-openbao or local-hsm for a local key store of the installation, else a UUID.

    Example:"local-openbao"

  • typeenum<string>

    The key store type. local: a key store of the installation (OpenBao Transit or the HSM of the installation); every organisation can use it, and the API cannot add, change or delete it. vault: an external OpenBao or HashiCorp Vault. gcp-kms: a key ring in Google Cloud KMS. aws-kms: one region of an AWS account. azure-key-vault: an Azure key vault or managed HSM. dpod: a partition of a Thales Luna Cloud HSM service (DPoD). csc: a remote signing key store, which signs through the Cloud Signature Consortium (CSC) API of a QTSP.

    Available options:local,vault,gcp-kms,aws-kms,azure-key-vault,dpod,csc

    Example:"local"

  • providerstring | null

    The provider of the key store, an id from List key store types, for example openbao, hashicorp-vault, google-cloud-kms or intesi. null for a local key store. It cannot change.

  • namestring

    The name of the key store, unique in the organisation. A local key store is Local vault (local-openbao). On an installation with the HSM as a dedicated option, the organisation has two local key stores that take new keys: Local vault (HSM) (local-hsm, the default key store of a new key) and Local vault (OpenBao) (local-openbao, the key store of an import that names no key store).

    At most 100 characters.

    Example:"Local vault"

  • localboolean

    true for a key store of the installation (type local).

    Example:true

  • statusenum<string>

    active: the last connection test passed, or the key store is not tested yet. error: the last connection test failed (a new dpod key store also has error until its first test passes). disabled is not in use.

    Available options:active,disabled,error

    Example:"active"

  • protectionenum<string> | null

    Where the private keys of the key store are. software: in the software of a key management service (local with openbao, vault, gcp-kms with SOFTWARE, azure-key-vault with EC). hsm: in the HSM of the installation (local with hsm). hsm-backed: in a cloud KMS that keeps the keys in hardware security modules (gcp-kms with HSM, aws-kms, azure-key-vault with EC-HSM). dedicated-hsm: in an HSM partition of the organisation (dpod). provider: at the QTSP, which decides (csc).

    Available options:software,hsm,hsm-backed,dedicated-hsm,provider

    Example:"software"

  • settingsobject

    The settings of the key store type, with the defaults filled in. Never a secret.

  • credentialsConfiguredobject

    Each credential member of the key store type, and whether the wallet has a value for it. The answer never has the value. Empty for a local key store. For example password, secretId, token and clientPrivateKey for vault, or clientSecret and userPin for csc.

  • capabilitiesenum<string>[]

    What the key store can do. create: Create key. import: Import key. reference: sign with a key that the provider already has. sign: sign with its keys. csr: make a CSR. certificateChain: store a certificate chain on a key. listProviderKeys: List provider keys. test: Test key store. edit and delete: change and delete the key store. A local key store has create and import only when it takes the new keys (no import with the HSM backend). A csc key store has no create, import, csr or certificateChain: the QTSP keeps the keys and gives the certificates.

    Available options:create,import,reference,sign,csr,certificateChain,listProviderKeys,test,edit,delete

  • qscdany

    Whether the key store keeps the keys in a qualified signature or seal creation device (QSCD). false, or provider for csc, where the QTSP decides.

    Example:false

  • keyCountinteger

    The number of keys of the organisation in the key store, without the retired keys.

    Example:3

  • retiredKeyCountinteger

    The number of retired keys of the organisation in the key store. A retired key stays in its key store as evidence until the organisation is purged, so Delete key store needs keyCount and retiredKeyCount both at 0.

    Example:0

  • qualifiedStatusenum<string> | null

    For a key store of a provider with qualified true only: qualified when the key store has keys and each of them is qualified (trust of the key), not-qualified when one is not, else unknown. null for every other key store.

    Available options:qualified,not-qualified,unknown

  • lastCheckedAtstring | null

    When the last connection test ran (ISO 8601 date-time, UTC). null before the first test.

  • lastCheckResultobject | null

    The result of the last connection test. null before the first test.

  • createdAtstring | null

    When the key store was added (ISO 8601 date-time, UTC).

    Example:"2026-10-20T10:00:00Z"

  • updatedAtstring | null

    When the key store last changed (ISO 8601 date-time, UTC).

    Example:"2026-10-20T10:00:00Z"