SignSigningRequestBody
Properties
| Property | Type | Description | |
|---|---|---|---|
issuances_name
| string | Required | Display name for the certificate in ZanPKI (up to 100 characters). Exported files are named after it. |
signing_request
| string | Required | PEM-encoded certificate signing request (CSR). The private key remains wherever it was generated. |
issuances_profile
| one of: 1, 2, 3, 4 | Required | Certificate profile that sets its X.509 key purposes: 1 for TLS server (website, service, or VPN), 2 for mTLS client (service), 3 for VPN user (client authentication), or 4 for TLS server and client (both directions). Pass null when searching to match any profile. |
issuances_profile_id
| string (snowflake), or null | Optional | ID of the organization's custom profile derived from the base profile, or null if using a built-in ZanPKI profile or if the custom profile was deleted. |
issuances_authority_id
| string (snowflake) | Required | ID of the organization's authority that signed the certificate, or null for an imported certificate not signed by any of the organization's authorities. |
issuances_digest
| one of: 1, 2, 3, 4, null | Optional | Signature hash algorithm used by the signing authority. Leave it empty to use the profile's digest, or, if the profile has none, to match the authority's key: SHA-384 for RSA 4096 and EC P-384, SHA-512 for EC P-521, and SHA-256 for RSA 2048, RSA 3072, and EC P-256. An ML-DSA authority always signs with pure ML-DSA, which has no separate hash. |
sans
| string, or null | Optional | DNS names, IP addresses, email addresses, or URIs separated by spaces, commas, or newlines. Leave empty to use the SANs requested in the CSR. Server certificates require at least one DNS name or IP address. |
days
| integer (int32) | Required | Validity period of the signed certificate in days from now (1 to 825, default 397). It must expire before its signing authority expires. |
Used by
| Method | Path | Summary |
|---|---|---|
| POST | /organizations/{organizationId}/certificates/sign | Sign a certificate signing request (CSR) with one of the organization's authorities for a private key kept externally. |