Cryptographic keys

The following key management functions are available:

List key ids

The /v1/key endpoint lists the available key ids.

curl -X 'GET' \
  'https://core.ssikit.walt.id/v1/key' \
  -H 'accept: application/json'

E.g. List the available key ids.

curl -X 'GET' \
  'https://core.ssikit.walt.id/v1/key' \
  -H 'accept: application/json'

Load key

The /v1/key/{id} endpoint loads the public component of the provided key id in JWK format:

  • id - path parameter (required) - the key id

E.g. Load the key having id = e548f032cadf4145ab6886a57c2e87e6.

Delete key

The /v1/key/{id} endpoint deletes the specified key.

E.g. Delete the key having id = e548f032cadf4145ab6886a57c2e87e6.

Generate key

The /v1/key/gen generates a new key using the specified algorithm.

E.g. Generate a new key using the EdDSA_Ed25519 algorithm.

Import key

The /v1/key/import endpoint imports a key (JWK or PEM format) to the underlying keystore.

E.g. Import a public key specified in JWK format.

Export key

The /v1/key/export endpoint exports public and private key part (if supported by underlying keystore).

E.g. Export the public key with id = bc6fa6b0593648238c4616800bed7746 as JWK.

Last updated

Was this helpful?