/certificates/{id}/download
Docs for PKI Manager 3.17.0 (released 2026-11-24), from main 4d59c30 (30 commits after the release).
const url = 'https://pki.example.com/api/v1/certificates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download?format=pem&encryptPrivateKey=false&includeChain=true';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/certificates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/download?format=pem&encryptPrivateKey=false&includeChain=true' \ --header 'Authorization: Bearer <token>'Download certificate in various formats
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Download format
DEPRECATED: use the X-Export-Password header instead. A password in the URL is recorded in browser history and proxy/server logs. Password for encrypted formats (P12, JKS, encrypted PKCS8)
Encrypt the private key
Include certificate chain
Header Parameters
Section titled “Header Parameters”Export password for password-protected formats. Preferred over the deprecated password query parameter: a header is not recorded in browser history or in proxy/server access logs. Takes precedence over the query parameter.
Responses
Section titled “Responses”Default Response
object
Base64-encoded certificate data
Example generated
{ "data": "example", "mimeType": "example", "filename": "example"}Default Response
object
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}Default Response
object
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}Default Response
object
object
object
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}PKI Manager is a personal project of Oriol Rius, built for his own use. It is not a commercial product. About this project