Sign a CSR with the integration CA (idempotent on requestUid)
POST
/external/sign
const url = 'https://pki.example.com/api/v1/external/sign';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"csrPem":"example","requestUid":"example","durationDays":1,"certificateType":"server","k8sNamespace":"example","k8sResource":"example","sanDns":["example"],"sanIp":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
csrPem
required
PEM-encoded PKCS#10 CSR to sign
string
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
durationDays
Requested validity in days (clamped server-side to 1..825; default 90)
integer
certificateType
Metadata hint only. Key usage and extended key usage are taken from the signed CSR.
string
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
Responses
Section titled “Responses”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"}