Skip to main content
POST
Rotate ICP-Brasil certificate

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

Idempotency key. Required on every mutation.

X-TTL
string

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

Corpo

application/json
certificateRef
string
obrigatório

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
Exemplo:

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

privateKeyRef
string
obrigatório

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
Exemplo:

"/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
Exemplo:

"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
Exemplo:

"Quarterly rotation per ICP-Brasil policy"

Resposta

OK

auditId
string<uuid>
obrigatório

UUID of the audit record written for this rotation.

Exemplo:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

certificate
object
obrigatório

State of the certificate after the rotation hot-reload.

correlationId
string
obrigatório

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

Exemplo:

"req-7a3f9c2e"

readiness
object

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