Skip to content
Skip to Content

Read a domain's uploaded certificate

GET
/domains/{domainId}/certificate

The names, issuer and dates of the certificate uploaded for your own domain. Its private key is never returned.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

domainId*string

Response body

Read a domain's uploaded certificate

application/json
  1. response
names*array<string>

The names the certificate covers.

issuer*string
notBefore*string
Formatdate-time
notAfter*string
Formatdate-time
fingerprint*string

SHA-256 of the certificate.

Example request
curl "https://openpanel.sh/api/v1/domains/$DOMAIN_ID/certificate" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "names": [    "string"  ],  "issuer": "string",  "notBefore": "2019-08-24T14:15:22Z",  "notAfter": "2019-08-24T14:15:22Z",  "fingerprint": "string"}