Encedo HEM API Developer Manual
  • Welcome!
  • Preliminary
    • Quick Start
    • General information
  • Security
    • Report an issue
    • Advisory
      • Hall of fame
  • Reference
    • API Reference
      • System
        • Version & Status
        • Checkin
        • Configuration
        • Upgrade
          • Firmware
            • Low level USB mode
          • Management app
        • Self-test
        • Reboot
        • Shutdown
      • Authorization
        • Initialization
        • User authentication
        • External authenticator
          • Registration
          • Authentication
      • Key Management
        • Create a key
        • Derive a key
        • Import a key
        • Update a key
        • Delete a key
        • Get a public key
        • List the keys
        • Search a key
      • Cryptography operations
        • HMAC
        • ExDSA
        • ECDH
        • Encryption
          • Encryption/Decryption
          • Wrap/Unwrap
      • Audit log
      • Storage
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Key Management

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

Not allowed

Allowed

Required access scope

keymgmt:get

keymgmt:use:<KID>

where <KID> is a Key ID as 32 chars hexadecimal string

Get a public key

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

Get a public key from asymmetric key only

Query Parameters

Name
Type
Description

kid*

String

Key ID, 32 chars hex string

Headers

Name
Type
Description

Authorization*

String

Bearer JWT_TOKEN

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

Response data for successful operation

Name
Type
Description

pubkey

String

Base64 encoded public key

type

String

Type of a key

updated

String

Last update timestamp

Log entries

Event
Result
Source

LOG_TYPE_FAILED_SCOPE_CHECK

LOG_RESULT_FAILED

403

PreviousDelete a keyNextList the keys

Last updated 3 years ago