Skip to content

Sign a CSR with the integration CA (idempotent on requestUid)

POST
/external/sign
curl --request POST \
--url https://pki.example.com/api/v1/external/sign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "csrPem": "example", "requestUid": "example", "durationDays": 1, "certificateType": "server", "k8sNamespace": "example", "k8sResource": "example", "sanDns": [ "example" ], "sanIp": [ "example" ] }'
Media typeapplication/json
object
csrPem
required

PEM-encoded PKCS#10 CSR to sign

string
>= 1 characters <= 65536 characters
requestUid
required

Idempotency key scoped to this integration and CA. A retry returns the active cached certificate; revoked or expired cached certificates return 409.

string
>= 1 characters <= 256 characters
durationDays

Requested validity in days (clamped server-side to 1..825; default 90)

integer
>= 1 <= 825
certificateType

Metadata hint only. Key usage and extended key usage are taken from the signed CSR.

string
Allowed values: server client dual
k8sNamespace
string
k8sResource
string
sanDns

Ignored compatibility field. SAN identities must be included in the signed CSR.

Array<string>
sanIp

Ignored compatibility field. IP identities must be included in the signed CSR.

Array<string>
key
additional properties
any

Default Response

Media typeapplication/json
object
idempotent
boolean
id
string
serialNumber
string
certificatePem
string
chainPem
string
notBefore
string format: date-time
notAfter
string format: date-time
key
additional properties
any

Example generated

{
"idempotent": true,
"id": "example",
"serialNumber": "example",
"certificatePem": "example",
"chainPem": "example",
"notBefore": "2026-04-15T12:00:00Z",
"notAfter": "2026-04-15T12:00:00Z"
}