Saltar al contenido principal
POST
Rotate ICP-Brasil certificate

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

Idempotency key. Required on every mutation.

X-TTL
string

Seconds the cached response is kept; it may only shorten IDEMPOTENCY_DEFAULT_TTL_SEC.

Cuerpo

application/json
certificateRef
string
requerido

Path to the new certificate, validated against the configured cert directory before any read. The 2048-character bound is LERIAN'S OWN, not BACEN's: a material reference is deployment configuration and never crosses an SFN wire.

Required string length: 1 - 2048
Ejemplo:

"/certs/2026-q2/icp-brasil.crt"

privateKeyRef
string
requerido

The new private key in the configured custody: with SPB_SIGNER_KIND=file a path validated against the configured cert directory before any read, with pkcs11 the key label, with kmip the private key UID. The 2048-character bound is LERIAN'S OWN, not BACEN's: a material reference is deployment configuration and never crosses an SFN wire.

Required string length: 1 - 2048
Ejemplo:

"/certs/2026-q2/icp-brasil.key"

publicKeyRef
string

With SPB_SIGNER_KIND=kmip, the UID of the new key's public half; unused by the other custodies. The 2048-character bound is LERIAN'S OWN, not BACEN's: a material reference is deployment configuration and never crosses an SFN wire.

Maximum string length: 2048
Ejemplo:

"spb-sign-2026-q2-pub"

reason
string

Optional operator rationale recorded in the audit evidence. The 512-character bound is LERIAN'S OWN, not BACEN's: a rotation rationale is Lerian SPB audit evidence and never crosses an SFN wire.

Maximum string length: 512
Ejemplo:

"Quarterly rotation per ICP-Brasil policy"

Respuesta

OK

auditId
string<uuid>
requerido

UUID of the audit record written for this rotation.

Ejemplo:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

certificate
object
requerido

State of the certificate after the rotation hot-reload.

correlationId
string
requerido

Request-scoped correlation identifier echoing X-Request-ID, for pivoting from response to trace.

Ejemplo:

"req-7a3f9c2e"

readiness
object

Optional post-rotation readiness summary; omitted when readiness lookup is unavailable.