Skip to content

Retrieve a certificate

Request

Retrieves a certificate by certificateId

Path
certificateIdstring, (uuid)required

Identifier of the certificate

curl -i -X GET \
  'https://oag.domain.tld/api/v2/certificates/{certificateId}'

Responses

Success

Bodyapplication/json
commonNamestringread-only

The name of the certificate, typically the domain name

expiresOnstring, (date)read-only

The date when the certificate expires

idstring, (uuid)read-only

Unique identifier of the certificate

sanArray of stringsread-only

List of subject alternative names (SANs) for the certificate

selfSignedboolean

Whether or not the certificate and key pair are self-signed. Set to true to generate a self-signed certificate.

validFromstring, (date)read-only

The date when the certificate becomes valid

validityRemainingintegerread-only

The number of days until expiration

Response
{ "commonName": "string", "expiresOn": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "san": [ "string" ], "selfSigned": true, "validFrom": "2019-08-24", "validityRemaining": 0 }