upload_client_certificate_and_key
Upload a certificate and private key as a client attribute in a Keycloak realm. Use it to attach keystore content (JKS, PKCS12, PEM) with alias and passwords for client certificate configuration.
Instructions
Upload a certificate and its private key for a client attribute.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"realm": "<realm>",
"client_uuid": "<client_uuid>",
"attr": "<attr>",
"upload": "<upload>"
},
"name": "upload_client_certificate_and_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attr | Yes | Certificate attribute name | |
| realm | Yes | Realm name | |
| upload | Yes | Multipart form fields: file (keystore content as text, or file_base64 for binary content such as JKS/PKCS12), keystoreFormat ("JKS", "PKCS12", "PEM"...), keyAlias, keyPassword, storePassword | |
| client_uuid | Yes | Client UUID |