Download certificate
Retrieve the certificate chain of an installed SSL certificate, so you can install it on other (internal) systems.
GET/api/servers/{server}/sites/{site}/certificates/{certificate}/download
Download certificate
This endpoint returns the certificate chain for a specific certificate, together with the path it lives on. The private key stays on the server and is never returned.
This call can take longer than usual because the actual file is retrieved on-demand from your server.
Only installed certificates that have certificate files can be downloaded. Signing requests and load balancer certificates return a 422 response, and so does a certificate that is still being requested.
- Name
certificate- Type
- string
- Description
The full certificate chain in PEM format.
- Name
certificate_path- Type
- string
- Description
The path of the certificate file on the server.
- Name
expires_at- Type
- string
- Description
The expiration date of the certificate.
Request
GET
/api/servers/{server}/sites/{site}/certificates/{certificate}/downloadcurl -G "https://ploi.io/api/servers/{server}/sites/{site}/certificates/{certificate}/download" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"certificate": "-----BEGIN CERTIFICATE-----\nMIIF...\n-----END CERTIFICATE-----\n",
"certificate_path": "/etc/letsencrypt/live/domain.com-1/fullchain.pem",
"expires_at": "2026-10-29 05:34:30"
}