Skip to content

List all certificate authorities

Request

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

Lists all certificate authorities (CAs) in your org.

By default, the response covers both the root and the intermediate CA, and both the Okta CA and the Device Access CA families. Use type and caType to narrow the result.

Certificates aren't included by default, because an authority holds more than one of them after a renewal. Use expand=certificates to get them inline instead of making a second request per authority.

Query
typestring(CertificateAuthorityType)

Filters the result to root or intermediate certificate authorities. Omit it to get both.

Enum:"INTERMEDIATE""ROOT"
caTypestring(CertificateAuthorityCaType)

Filters the result to one certificate authority family. Omit it to get both.

Enum:"DEVICE_ACCESS_OKTA_AS_CA""OKTA_AS_CA"
expandstring(CertificateAuthorityExpand)

Set to certificates to include each authority's certificates in _embedded

Value:"certificates"
curl -i -X GET \
  'https://subdomain.okta.com/pki/api/v2/certificate-authorities?type=INTERMEDIATE&caType=DEVICE_ACCESS_OKTA_AS_CA&expand=certificates'

Responses

OK

Bodyapplication/json
dataArray of objects(CertificateAuthority)

The certificate authorities, roots before intermediates

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