Skip to content
Start here

Custom Csrs

resource cloudflare_custom_csr

required Expand Collapse
common_name: String

The common name (domain) for the CSR. Must be at most 64 characters.

country: String

Two-letter ISO 3166-1 alpha-2 country code.

locality: String

City or locality name.

organization: String

Organization name.

state: String

State or province name.

sans: List[String]

Subject Alternative Names for the CSR. At least one SAN is required.

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

description?: String

Optional description for the CSR.

name?: String

Human-readable name for the CSR.

organizational_unit?: String

Organizational unit name.

key_type?: String

Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.

computed Expand Collapse
id: String

Custom CSR identifier tag.

account_tag: String

Account identifier associated with this CSR.

created_at: Time

When the CSR was created.

csr: String

The PEM-encoded Certificate Signing Request.

cloudflare_custom_csr

resource "cloudflare_custom_csr" "example_custom_csr" {
  common_name = "example.com"
  country = "US"
  locality = "San Francisco"
  organization = "Cloudflare, Inc."
  sans = ["example.com", "www.example.com"]
  state = "California"
  zone_id = "zone_id"
  description = "CSR for example.com wildcard"
  key_type = "rsa2048"
  name = "My Custom CSR"
  organizational_unit = "Engineering"
}

data cloudflare_custom_csr

required Expand Collapse
custom_csr_id: String

Custom CSR identifier tag.

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

computed Expand Collapse
id: String

Custom CSR identifier tag.

account_tag: String

Account identifier associated with this CSR.

common_name: String

The common name (domain) for the CSR.

country: String

Two-letter ISO 3166-1 alpha-2 country code.

created_at: Time

When the CSR was created.

csr: String

The PEM-encoded Certificate Signing Request.

description: String

Optional description for the CSR.

key_type: String

The key algorithm used to generate the CSR.

locality: String

City or locality name.

name: String

Human-readable name for the CSR.

organization: String

Organization name.

organizational_unit: String

Organizational unit name.

state: String

State or province name.

sans: List[String]

Subject Alternative Names included in the CSR.

cloudflare_custom_csr

data "cloudflare_custom_csr" "example_custom_csr" {
  custom_csr_id = "7b163417-1d2b-4c84-a38a-2fb7a0cd7752"
  account_id = "account_id"
  zone_id = "zone_id"
}

data cloudflare_custom_csrs

optional Expand Collapse
account_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

Custom CSR identifier tag.

created_at: Time

When the CSR was created.

key_type: String

The key algorithm used to generate the CSR.

account_tag: String

Account identifier associated with this CSR.

common_name: String

The common name (domain) for the CSR.

country: String

Two-letter ISO 3166-1 alpha-2 country code.

csr: String

The PEM-encoded Certificate Signing Request.

description: String

Optional description for the CSR.

locality: String

City or locality name.

name: String

Human-readable name for the CSR.

organization: String

Organization name.

organizational_unit: String

Organizational unit name.

sans: List[String]

Subject Alternative Names included in the CSR.

state: String

State or province name.

cloudflare_custom_csrs

data "cloudflare_custom_csrs" "example_custom_csrs" {
  account_id = "account_id"
  zone_id = "zone_id"
}