Skip to main content

Register Ephemeral Key

This endpoint is used to register the ephemeral key for third-party application users', it returns a certificate chain with the user's key as the subject of the leaf certificate.

Only Ed25519 public keys are accepted by this endpoint, they can either be the native 32 byte public key Base 64 encoded or specified as a Base 64 DER encoded key as defined in RFC8410.

This endpoint may require a secondary authentication check before producing a certificate chain for the user, it will indicate this by returning a 423 error.

The certificate chain returned should be used in the x5c field when performing signed requests such as unlocking.

HTTP Request

POST https://api.doordeck.com/auth/certificate

Request Parameters

ParameterRequiredDescription
ephemeralKeytrueBase64 encoded ephemeral Ed25519 key

Example

CURL
curl "https://api.doordeck.com/auth/certificate" \
-X POST \
-H "Authorization: Bearer TOKEN" \
-H 'content-type: application/json' \
--data-binary '{"ephemeralKey":"Base64 encoded Ed25519 public key"}'
Remember
  • Replace TOKEN with your access token.
  • Replace Base64 encoded Ed25519 public key with the user's ephemeral key.