Skip to content

List all certificates for a certificate authority

Request

Early Access
OAuth 2.0 scope:
  • okta.certificateAuthorities.read

Lists all valid certificates that a certificate authority (CA) currently holds, newest first.

After a renewal, this returns two certificates: the renewed one, with a rotationState of ACTIVE, and the one it supersedes, with a rotationState of RETIRING. Expired certificates aren't returned.

Path
authorityInstanceIdstring^[0-9A-F]+$required

The stable identifier of the certificate authority, in uppercase hexadecimal. It survives renewals and is the value embedded in the SCEP enrollment URL.

curl -i -X GET \
  'https://subdomain.okta.com/pki/api/v2/certificate-authorities/{authorityInstanceId}/certificates'

Responses

OK

Bodyapplication/json
dataArray of objects(CertificateAuthorityCertificate)

The certificates, newest first

Response
{ "data": [ { … }, { … } ] }