Skip to content
Start here

List certificate authorities

client.Radar.CT.Authorities.List(ctx, query) (*CTAuthorityListResponse, error)
GET/radar/ct/authorities

Retrieves a list of certificate authorities.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
User Details WriteUser Details Read
ParametersExpand Collapse
query CTAuthorityListParams
Format param.Field[CTAuthorityListParamsFormat]Optional

Format in which results will be returned.

const CTAuthorityListParamsFormatJson CTAuthorityListParamsFormat = "JSON"
const CTAuthorityListParamsFormatCsv CTAuthorityListParamsFormat = "CSV"
Limit param.Field[int64]Optional

Limits the number of objects returned in the response.

exclusiveMinimum
minimum0
Offset param.Field[int64]Optional

Skips the specified number of objects before fetching the results.

minimum0
ReturnsExpand Collapse
type CTAuthorityListResponse struct{…}
CertificateAuthorities []CTAuthorityListResponseCertificateAuthority
CertificateRecordType CTAuthorityListResponseCertificateAuthoritiesCertificateRecordType

Specifies the type of certificate in the trust chain.

One of the following:
const CTAuthorityListResponseCertificateAuthoritiesCertificateRecordTypeRootCertificate CTAuthorityListResponseCertificateAuthoritiesCertificateRecordType = "ROOT_CERTIFICATE"
const CTAuthorityListResponseCertificateAuthoritiesCertificateRecordTypeIntermediateCertificate CTAuthorityListResponseCertificateAuthoritiesCertificateRecordType = "INTERMEDIATE_CERTIFICATE"
Country string

The two-letter ISO country code where the CA organization is based.

CountryName string

The full country name corresponding to the country code.

Name string

The full name of the certificate authority (CA).

Owner string

The organization that owns and operates the CA.

ParentName string

The name of the parent/root certificate authority that issued this intermediate certificate.

ParentSha256Fingerprint string

The SHA-256 fingerprint of the parent certificate.

RevocationStatus CTAuthorityListResponseCertificateAuthoritiesRevocationStatus

The current revocation status of a Certificate Authority (CA) certificate.

One of the following:
const CTAuthorityListResponseCertificateAuthoritiesRevocationStatusNotRevoked CTAuthorityListResponseCertificateAuthoritiesRevocationStatus = "NOT_REVOKED"
const CTAuthorityListResponseCertificateAuthoritiesRevocationStatusRevoked CTAuthorityListResponseCertificateAuthoritiesRevocationStatus = "REVOKED"
const CTAuthorityListResponseCertificateAuthoritiesRevocationStatusParentCERTRevoked CTAuthorityListResponseCertificateAuthoritiesRevocationStatus = "PARENT_CERT_REVOKED"
Sha256Fingerprint string

The SHA-256 fingerprint of the intermediate certificate.

List certificate authorities

package main

import (
  "context"
  "fmt"

  "github.com/stainless-sdks/cloudflare-go"
  "github.com/stainless-sdks/cloudflare-go/option"
  "github.com/stainless-sdks/cloudflare-go/radar"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  authorities, err := client.Radar.CT.Authorities.List(context.TODO(), radar.CTAuthorityListParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", authorities.CertificateAuthorities)
}
{
  "result": {
    "certificateAuthorities": [
      {
        "certificateRecordType": "ROOT_CERTIFICATE",
        "country": "PT",
        "countryName": "Portugal",
        "name": "MULTICERT Advanced Certification Authority 005",
        "owner": "MULTICERT",
        "parentName": "MULTICERT Root Certification Authority 01",
        "parentSha256Fingerprint": "24EDD4E503A8D3FDB5FFB4AF66C887359901CBE687A5A0760D10A08EED99A7C3",
        "revocationStatus": "NOT_REVOKED",
        "sha256Fingerprint": "24EDD4E503A8D3FDB5FFB4AF66C887359901CBE687A5A0760D10A08EED99A7C3"
      }
    ]
  },
  "success": true
}
Returns Examples
{
  "result": {
    "certificateAuthorities": [
      {
        "certificateRecordType": "ROOT_CERTIFICATE",
        "country": "PT",
        "countryName": "Portugal",
        "name": "MULTICERT Advanced Certification Authority 005",
        "owner": "MULTICERT",
        "parentName": "MULTICERT Root Certification Authority 01",
        "parentSha256Fingerprint": "24EDD4E503A8D3FDB5FFB4AF66C887359901CBE687A5A0760D10A08EED99A7C3",
        "revocationStatus": "NOT_REVOKED",
        "sha256Fingerprint": "24EDD4E503A8D3FDB5FFB4AF66C887359901CBE687A5A0760D10A08EED99A7C3"
      }
    ]
  },
  "success": true
}