Create Certificate Secret
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Secret name (spaces → underscores) |
certificate_content | string | Yes | Certificate in PEM, PKCS#7, CRT/CER format, or base64-encoded DER/PFX/P12 |
private_key | string | No | PEM-encoded private key to store alongside the certificate |
passphrase | string | No | Passphrase to decrypt the private key. Encrypted and stored separately |
certificate_type | string | No | pem (default), pfx, p12, crt, cer, key, pkcs7, p7b, or p7c |
collection_id | uuid | No | Assign to a collection |
Response
POST /v1/secrets with secret_type: "certificate" and the same body fields.
Errors
| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Missing required fields or invalid certificate_type |
| 403 | plan_limit | Secret limit reached for your subscription plan |
| 409 | conflict | A secret with this name already exists |