/cas/{id}/download
GET
/cas/{id}/download
const url = 'https://pki.example.com/api/v1/cas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download?format=pem';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://pki.example.com/api/v1/cas/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download?format=pem' \ --header 'Authorization: Bearer <token>'Download CA certificate in various formats.
Certificate Formats (public certificate only):
pem- PEM text format (Base64-encoded with headers)crt- CRT text certificate (same as PEM)der- DER binary compact formatcer- CER Windows-compatible format (same as DER)
Truststore Formats (public certificate only, for trust validation):
p12-truststore- PKCS#12 truststore containing only the CA certificatejks-truststore- Java KeyStore truststore containing only the CA certificate
Keystore Formats (certificate + private key, for CA signing operations):
p12-keystore- PKCS#12 keystore with CA certificate and private keyjks-keystore- Java KeyStore with CA certificate and private key
Security Note: Keystore formats expose the CA’s private key. Only use these for CA operations that require signing capability (e.g., offline CA scenarios).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Query Parameters
Section titled “Query Parameters”format
required
string
Download format
password
string
Password for P12 and JKS formats. Required for keystore formats, optional for truststore formats (defaults to “changeit” if not provided)
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
data
Base64-encoded certificate data
string
mimeType
string
filename
string
Example generated
{ "data": "example", "mimeType": "example", "filename": "example"}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}