Get a public key

This key management operation allows retrieving the public key of an asymmetric key stored inside the device's secure repository.

Allowed users

Allowed

Required access scope

keymgmt:get

Get a public key

GET https://my.ence.do/api/keymgmt/get/:kid

Get a public key from asymmetric key only

Query Parameters

NameTypeDescription

kid*

String

Key ID, 32 chars hex string

Headers

NameTypeDescription

Authorization*

String

Bearer JWT_TOKEN

{
  "type": "CURVE25519",
  "pubkey": "IYBby9t5R6aiQ13CE0RJ7Z0jIMOIXGLN+U9Tebo3/CU=",
  "updated": 1647787070
}

Response data for successful operation

NameTypeDescription

pubkey

String

Base64 encoded public key

type

String

Type of a key

updated

String

Last update timestamp

Log entries

EventResultSource

LOG_TYPE_FAILED_SCOPE_CHECK

LOG_RESULT_FAILED

403

Last updated