PKI

Public keys that verify the tokens this control plane issues.

2 endpoints · Plakar Control Plane v0.18 · Base URL, authentication and errors

List the public keys

GET /api/v1/pki/keys
No authentication

Response 200 OK application/json

  • keys array[object]
    • alg string
    • crv string
    • kid string
    • kti string
    • use string
    • x string

Errors

  • 400 Bad Request (validation or deserialization error)
  • 500 Internal Server Error (panics)

Every error returns the standard error body.

Request

curl 'https://pcp.example.com/api/v1/pki/keys'

Response 200

{
  "keys": [
    {
      "alg": "string",
      "crv": "string",
      "kid": "string",
      "kti": "string",
      "use": "string",
      "x": "string"
    }
  ]
}

Get a public key

GET /api/v1/pki/keys/{keyid}
No authentication

Path parameters

  • keyid string required

Response 200 OK application/json

  • public_key string

Errors

  • 400 Bad Request (validation or deserialization error)
  • 500 Internal Server Error (panics)

Every error returns the standard error body.

Request

curl 'https://pcp.example.com/api/v1/pki/keys/{keyid}'

Response 200

{
  "public_key": "string"
}