Creates a certificate-type secret for use with mTLS-authenticated upstream APIs
Create Certificate Secret
POST /v1/secrets/certificate
Creates a certificate-type secret for use with mTLS-authenticated upstream APIs. KnoxCall accepts PEM, PKCS#7, CRT/CER, PFX/P12, and KEY formats.For PEM-format certificates, KnoxCall automatically extracts the subject, issuer, and expiry date and returns them in the response metadata.
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