---
title: "Download certificate"
method: GET
path: "/v1/ssl/certificates/{cert_id}/download"
tags: ["SSL"]
---

# Download certificate

`GET /v1/ssl/certificates/{cert_id}/download`

## Request

- Base URL: `https://developers.servera.lt`
- URL: `https://developers.servera.lt/v1/ssl/certificates/{cert_id}/download`
- Auth: HTTP bearer

Download the issued certificate. `format=pem` returns the fullchain (and the private
key, if we hold it). `format=pfx` returns a base64 **PKCS#12 / .pfx** bundle for
Windows / IIS (optional `password`) — available only when Servera holds the private key
(i.e. you did not supply your own CSR).

## Path parameters

- `cert_id` integer, required

## Query parameters

- `format` 'pem' | 'pfx'
- `password` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/servera/apis/servera-developers-api-2.md) · [All operations](https://skmtc.dev/servera/apis/servera-developers-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/servera/apis/servera-developers-api-2/revisions/2e744791e77f?raw)
