Skip to main content

Invalid ca keys

typehttps://docs.frem.sh/reference/api/errors/invalid-ca-keys
HTTP status400 Bad Request

What it means

The request was malformed, or a field failed validation.

Example detail messages returned with this error:

  • ca_keys must be an array of OpenSSH public-key strings.
  • Too many CA keys (max {SSH_CA_MAX_KEYS}).
  • Key {i + 1} is not a valid OpenSSH public key (e.g. “ssh-ed25519 [comment]”).

What to do

Correct the ca_keys value - detail names what was wrong.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/invalid-ca-keys",
  "title": "Bad Request",
  "status": 400,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.