Skip to content

Retrieve a certificate from a certificate authority

Request

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

Retrieves one certificate from a certificate authority (CA) by its subject key identifier (ski).

The request fails with a 404 if the ski is unknown, has expired, or belongs to a different authority.

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.

skistring^[0-9A-F]+$required

The subject key identifier of one certificate within the authority, in uppercase hexadecimal

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

Responses

OK

Bodyapplication/json
akistringread-only

The authority key identifier of this certificate — the ski of the CA certificate that signed it. This is how the trust chain is walked. A self-signed root has no parent.

authorityInstanceIdstringread-only

The stable identifier of the authority this certificate belongs to

caTypestring(CertificateAuthorityCaType)

The family of the certificate authority. OKTA_AS_CA is the Okta CA used for SCEP enrollment and device management attestation; DEVICE_ACCESS_OKTA_AS_CA is the Device Access CA. The caType query parameter filters on the same values.

Enum:"DEVICE_ACCESS_OKTA_AS_CA""OKTA_AS_CA"
createdDatestring, (date-time)(Created)read-only

Timestamp when the object was created

Example:"2016-01-03T18:15:47.000Z"
expirationDatestring, (date-time)read-only

Timestamp when this certificate expires

jwkobject(CertificateAuthorityJsonWebKey)read-only

The public key of the certificate, as a JSON Web Key. Only public RSA parameters are returned.

lastUpdatedDatestring, (date-time)(LastUpdated)read-only

Timestamp when the object was last updated

Example:"2016-01-03T18:15:47.000Z"
rotationStatestring(CertificateAuthorityRotationState)read-only

The rotation stage of the CA certificate. ACTIVE indicates the authority's newest certificate, which is the one that a renewal migrates SCEP configurations onto. RETIRING indicates a certificate that has been superseded by a renewal but remains valid, allowing enrolled devices to continue functioning during migration.

Enum:"ACTIVE""RETIRING"
skistringread-only

The subject key identifier of this certificate, in uppercase hexadecimal. It identifies the certificate within its authority.

statusstring(CertificateAuthorityCertificateStatus)read-only

The status of the certificate. VALID is in service and able to issue certificates, which is how Okta generates a replacement CA certificate. INACTIVE is a replacement that Okta generated but hasn't brought into service, which occurs only for an authority renewed before selective renewal was available; renewing such an authority activates it.

Enum:"INACTIVE""VALID"
subjectDNstringread-only

The distinguished name in the subject of this certificate

typestring(CertificateAuthorityType)

The position of the certificate authority in the hierarchy. A root is self-signed; an intermediate is signed by the root and signs the certificates Okta issues to devices. The type query parameter filters on the same values.

Enum:"INTERMEDIATE""ROOT"
Response
{ "ski": "53D22A615854286F8CD72E3E18E0FACC7A9D3948", "aki": "B94E9A79DF30FC870CF018C274138A0BF56DEB04", "authorityInstanceId": "1699E4263D0DC9D9FDA0B6AAE1286E5F7B57ACCC", "rotationState": "ACTIVE", "type": "INTERMEDIATE", "caType": "OKTA_AS_CA", "subjectDN": "CN=Organization Intermediate Authority, OU=00o1a2b3c4D5e6F7g8h9, DC=example, DC=okta, DC=com", "status": "VALID", "createdDate": "2026-09-25T00:10:20.000+0000", "lastUpdatedDate": "2026-09-25T00:10:20.000+0000", "expirationDate": "2031-09-25T00:10:19.000+0000", "jwk": { "kty": "RSA", "use": "sig", "e": "AQAB", "n": "nZD7QWmIwj-3N_RZ1qJjX6CdxRRJqjqvGmyQfKQGXJnrOgQGxWDZuGV5jVbLcHXSNqRLQmVGvJqBqIvJ5cGwzHkQ" } }