Skip to content
Start here

Client Certificates

resource cloudflare_client_certificate

required Expand Collapse
zone_id: String

Identifier.

csr: String

The Certificate Signing Request (CSR). Must be newline-encoded.

validity_days: Int64

The number of days the Client Certificate will be valid after the issued_on date.

optional Expand Collapse
reactivate?: Bool
computed Expand Collapse
id: String

Identifier.

certificate: String

The Client Certificate PEM.

common_name: String

Common Name of the Client Certificate.

country: String

Country, provided by the CSR.

expires_on: String

Date that the Client Certificate expires.

fingerprint_sha256: String

Unique identifier of the Client Certificate.

issued_on: String

Date that the Client Certificate was issued by the Certificate Authority.

location: String

Location, provided by the CSR.

organization: String

Organization, provided by the CSR.

organizational_unit: String

Organizational Unit, provided by the CSR.

serial_number: String

The serial number on the created Client Certificate.

signature: String

The type of hash used for the Client Certificate..

ski: String

Subject Key Identifier.

state: String

State, provided by the CSR.

status: String

Client Certificates may be active or revoked, and the pending_reactivation or pending_revocation represent in-progress asynchronous transitions.

certificate_authority: Attributes

Certificate Authority used to issue the Client Certificate.

id: String
name: String

cloudflare_client_certificate

resource "cloudflare_client_certificate" "example_client_certificate" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  csr = <<EOT
  -----BEGIN CERTIFICATE REQUEST-----
  MIICY....
  -----END CERTIFICATE REQUEST-----
  EOT
  validity_days = 3650
}

data cloudflare_client_certificate

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
client_certificate_id?: String

Identifier.

filter?: Attributes
limit?: Int64

Limit to the number of records returned.

offset?: Int64

Offset the results.

status?: String

Client Certitifcate Status to filter results by.

computed Expand Collapse
id: String

Identifier.

certificate: String

The Client Certificate PEM.

common_name: String

Common Name of the Client Certificate.

country: String

Country, provided by the CSR.

csr: String

The Certificate Signing Request (CSR). Must be newline-encoded.

expires_on: String

Date that the Client Certificate expires.

fingerprint_sha256: String

Unique identifier of the Client Certificate.

issued_on: String

Date that the Client Certificate was issued by the Certificate Authority.

location: String

Location, provided by the CSR.

organization: String

Organization, provided by the CSR.

organizational_unit: String

Organizational Unit, provided by the CSR.

serial_number: String

The serial number on the created Client Certificate.

signature: String

The type of hash used for the Client Certificate..

ski: String

Subject Key Identifier.

state: String

State, provided by the CSR.

status: String

Client Certificates may be active or revoked, and the pending_reactivation or pending_revocation represent in-progress asynchronous transitions.

validity_days: Int64

The number of days the Client Certificate will be valid after the issued_on date.

certificate_authority: Attributes

Certificate Authority used to issue the Client Certificate.

id: String
name: String

cloudflare_client_certificate

data "cloudflare_client_certificate" "example_client_certificate" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  client_certificate_id = "023e105f4ecef8ad9ca31a8372d0c353"
}

data cloudflare_client_certificates

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
limit?: Int64

Limit to the number of records returned.

offset?: Int64

Offset the results.

status?: String

Client Certitifcate Status to filter results by.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Identifier.

certificate: String

The Client Certificate PEM.

certificate_authority: Attributes

Certificate Authority used to issue the Client Certificate.

id: String
name: String
common_name: String

Common Name of the Client Certificate.

country: String

Country, provided by the CSR.

csr: String

The Certificate Signing Request (CSR). Must be newline-encoded.

expires_on: String

Date that the Client Certificate expires.

fingerprint_sha256: String

Unique identifier of the Client Certificate.

issued_on: String

Date that the Client Certificate was issued by the Certificate Authority.

location: String

Location, provided by the CSR.

organization: String

Organization, provided by the CSR.

organizational_unit: String

Organizational Unit, provided by the CSR.

serial_number: String

The serial number on the created Client Certificate.

signature: String

The type of hash used for the Client Certificate..

ski: String

Subject Key Identifier.

state: String

State, provided by the CSR.

status: String

Client Certificates may be active or revoked, and the pending_reactivation or pending_revocation represent in-progress asynchronous transitions.

validity_days: Int64

The number of days the Client Certificate will be valid after the issued_on date.

cloudflare_client_certificates

data "cloudflare_client_certificates" "example_client_certificates" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  limit = 10
  offset = 10
  status = "all"
}