Keycloak Client Attribute Certificate API

The Client Attribute Certificate API from Keycloak — 7 operation(s) for client attribute certificate.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr} Get a client certificate · Get key info #
Ask an LLM
“How do I fetch the public certificate stored for a client?”
“Can I read a client's certificate by its attribute name?”
Tell an agent
Get the certificate for client {client} in realm {realm} under attribute {attr}.
Show the public certificate stored on client {client} in realm {realm} for {attr}.
POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download Download a client keystore with its certificate · Get a keystore file for the client, containing the public certificate #
Ask an LLM
“How do I download a keystore containing a client's public certificate?”
“Can I export a client's certificate to a keystore with a password?”
Tell an agent
Download the keystore for client {client} in realm {realm} with attribute {attr}.
Export client {client}'s certificate for {attr} in realm {realm} as a keystore.
POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate Generate a new client certificate and key pair · Generate a new certificate with new key pair #
Ask an LLM
“How do I generate a fresh key pair and certificate for a client?”
“Can I create a new certificate for a client attribute?”
Tell an agent
Generate a new certificate and key pair for client {client} in realm {realm} under attribute {attr}.
Create a fresh key pair and certificate for {attr} on client {client} in realm {realm}.
POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download Generate and download a client private key · Generate a new keypair and certificate, and get the private key file Generates… #
Ask an LLM
“How do I generate a new key pair and download the private key file?”
“Can I get the private key of a client certificate along with the new certificate?”
Tell an agent
Generate a new key pair and certificate for client {client} in realm {realm} with attribute {attr} and download the private key.
Create a fresh certificate for {attr} on client {client} in realm {realm} and export the private key.
POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload Upload a client certificate without the private key · Upload only certificate, not private key #
Ask an LLM
“How do I upload only the public certificate of a client?”
“Can I replace a client's certificate without sending its private key?”
Tell an agent
Upload a certificate for client {client} in realm {realm} under attribute {attr}.
Replace the public certificate on client {client} in realm {realm} for {attr}.
POST /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate Upload a client certificate (no private key) · Upload only certificate, not private key #
Ask an LLM
“Can I upload just a client's certificate and not its private key?”
“How do I add a client TLS certificate for signing?”
Tell an agent
Upload the certificate for attribute {attr} of client {client-uuid} in realm {realm}.
Add only the certificate, not the private key, to client {client-uuid} on {realm} under {attr}.
POST /admin/realms/{realm}/identity-provider/upload-certificate Upload an identity provider certificate · Uploads a certificate, prepares the jwks or public key associated, and returns… #
Ask an LLM
“How do I upload a certificate for an identity provider?”
“Can I prepare a JWKS or public key from an uploaded identity provider certificate?”
Tell an agent
Upload an identity provider certificate for realm {realm}.
Replace the identity provider certificate in realm {realm} and prepare its JWKS.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/keycloak:keycloak-client-attribute-certificate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

keycloak-client-attribute-certificate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keycloak Admin REST Client Attribute Certificate API
  description: This is a REST API reference for the Keycloak Admin REST API.
  version: '1.0'
tags:
- name: Client Attribute Certificate
paths:
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Client Attribute Certificate
      summary: Get key info
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateRepresentation'
      operationId: getAdminRealmsByRealmClientsByClientUuidCertificatesByAttr
      x-operation-id-source: derived
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/download:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Get a keystore file for the client, containing the public certificate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeyStoreConfig'
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                format: binary
                type: string
      deprecated: true
      operationId: postAdminRealmsByRealmClientsByClientUuidCertificatesByAttrDownload
      x-operation-id-source: derived
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Generate a new certificate with new key pair
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateRepresentation'
      deprecated: true
      operationId: postAdminRealmsByRealmClientsByClientUuidCertificatesByAttrGenerate
      x-operation-id-source: derived
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/generate-and-download:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Generate a new keypair and certificate, and get the private key file Generates…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeyStoreConfig'
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                format: binary
                type: string
      deprecated: true
      operationId: postAdminRealmsByRealmClientsByClientUuidCertificatesByAttrGenerateAndDownload
      x-operation-id-source: derived
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Upload only certificate, not private key
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateRepresentation'
      deprecated: true
      operationId: postAdminRealmsByRealmClientsByClientUuidCertificatesByAttrUpload
      x-operation-id-source: derived
  /admin/realms/{realm}/clients/{client-uuid}/certificates/{attr}/upload-certificate:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    - name: client-uuid
      in: path
      description: id of client (not client-id!)
      required: true
      schema:
        type: string
    - name: attr
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Upload only certificate, not private key
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateRepresentation'
      operationId: postAdminRealmsByRealmClientsByClientUuidCertificatesByAttrUploadCertificate
      x-operation-id-source: derived
  /admin/realms/{realm}/identity-provider/upload-certificate:
    parameters:
    - name: realm
      in: path
      description: realm name (not id!)
      required: true
      schema:
        type: string
    post:
      tags:
      - Client Attribute Certificate
      summary: Uploads a certificate, prepares the jwks or public key associated, and returns…
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CertificateRepresentation'
      operationId: postAdminRealmsByRealmIdentityProviderUploadCertificate
      x-operation-id-source: derived
components:
  schemas:
    KeyStoreConfig:
      type: object
      properties:
        realmCertificate:
          type: boolean
        storePassword:
          type: string
        keyPassword:
          type: string
        keyAlias:
          type: string
        realmAlias:
          type: string
        format:
          type: string
        keySize:
          format: int32
          type: integer
        validity:
          format: int32
          type: integer
    CertificateRepresentation:
      type: object
      properties:
        privateKey:
          type: string
        publicKey:
          type: string
        certificate:
          type: string
        kid:
          type: string
        jwks:
          type: string