Skip to main content

Cloudflare/ssl

@swamp/cloudflare/sslv2026.07.24.1· 2d agoMODELS
01README

Cloudflare ssl infrastructure models

02Release Notes
  • Updated: custom_csrs
03Models7
@swamp/cloudflare/ssl/certificatesv2026.07.21.1certificates.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
certificatestringThe hostname certificate.
private_keystringThe hostname certificate's private key.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Certificates
fn get(id: string)
Get a Certificates
ArgumentTypeDescription
idstringThe ID of the Certificates
fn lookup()
Look up an existing Certificates by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Certificates by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Certificates to import
fn delete(id: string)
Delete the Certificates
ArgumentTypeDescription
idstringThe ID of the Certificates
fn sync(identifier?: string)
Sync Certificates state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Certificates by id (e.g. one discovered by list)

Resources

state(infinite)— Certificates resource state
@swamp/cloudflare/ssl/client-certificatesv2026.07.21.1client_certificates.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
reactivate?boolean
csrstringThe Certificate Signing Request (CSR). Must be newline-encoded.
validity_daysnumberThe number of days the Client Certificate will be valid after the issued_on date.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Client Certificates
fn get(id: string)
Get a Client Certificates
ArgumentTypeDescription
idstringThe ID of the Client Certificates
fn lookup()
Look up an existing Client Certificates by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Client Certificates by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Client Certificates to import
fn update(identifier?: string)
Update Client Certificates attributes
ArgumentTypeDescription
identifier?stringTarget a specific Client Certificates by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Client Certificates
ArgumentTypeDescription
idstringThe ID of the Client Certificates
fn sync(identifier?: string)
Sync Client Certificates state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Client Certificates by id (e.g. one discovered by list)

Resources

state(infinite)— Client Certificates resource state
@swamp/cloudflare/ssl/custom-certificatesv2026.07.21.1custom_certificates.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
bundle_method?enumA ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.
certificatestringThe zone's SSL certificate or certificate and the intermediate(s).
custom_csr_id?stringThe identifier for the Custom CSR that was used.
deploy?enumThe environment to deploy the certificate to, defaults to production.
geo_restrictions?objectSpecify the region where your private key can be held locally for optimal TLS performance. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Options allow distribution to only to U.S. data centers, only to E.U. data centers, or only to highest security data centers. Default distribution is to all Cloudflare datacenters, for optimal performance.
policy?stringSpecify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as \
private_key?stringThe zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.
type?enumThe type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Custom Certificates
fn get(id: string)
Get a Custom Certificates
ArgumentTypeDescription
idstringThe ID of the Custom Certificates
fn lookup()
Look up an existing Custom Certificates by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Custom Certificates by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Custom Certificates to import
fn update(identifier?: string)
Update Custom Certificates attributes
ArgumentTypeDescription
identifier?stringTarget a specific Custom Certificates by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Custom Certificates
ArgumentTypeDescription
idstringThe ID of the Custom Certificates
fn sync(identifier?: string)
Sync Custom Certificates state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Custom Certificates by id (e.g. one discovered by list)

Resources

state(infinite)— Custom Certificates resource state
@swamp/cloudflare/ssl/custom-csrsv2026.07.24.1custom_csrs.ts

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
common_namestringThe common name (domain) for the CSR. Must be at most 64 characters.
countrystringTwo-letter ISO 3166-1 alpha-2 country code.
description?stringOptional description for the CSR.
key_type?enumKey algorithm to use for the CSR. Defaults to rsa2048 if not specified.
localitystringCity or locality name.
name?stringHuman-readable name for the CSR.
organizationstringOrganization name.
organizational_unit?stringOrganizational unit name.
sansarraySubject Alternative Names for the CSR. At least one SAN is required.
statestringState or province name.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Custom Csrs
fn get(id: string)
Get a Custom Csrs
ArgumentTypeDescription
idstringThe ID of the Custom Csrs
fn lookup()
Look up an existing Custom Csrs by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Custom Csrs by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Custom Csrs to import
fn delete(id: string)
Delete the Custom Csrs
ArgumentTypeDescription
idstringThe ID of the Custom Csrs
fn sync(identifier?: string)
Sync Custom Csrs state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Custom Csrs by id (e.g. one discovered by list)

Resources

state(infinite)— Custom Csrs resource state
@swamp/cloudflare/ssl/custom-trust-storev2026.07.21.1custom_trust_store.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
certificatestringThe root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Custom Trust Store
fn get(id: string)
Get a Custom Trust Store
ArgumentTypeDescription
idstringThe ID of the Custom Trust Store
fn lookup()
Look up an existing Custom Trust Store by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Custom Trust Store by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Custom Trust Store to import
fn delete(id: string)
Delete the Custom Trust Store
ArgumentTypeDescription
idstringThe ID of the Custom Trust Store
fn sync(identifier?: string)
Sync Custom Trust Store state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Custom Trust Store by id (e.g. one discovered by list)

Resources

state(infinite)— Custom Trust Store resource state
@swamp/cloudflare/ssl/keyless-certificatesv2026.07.21.1keyless_certificates.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
enabled?booleanWhether or not the Keyless SSL is on or off.
hoststringThe keyless SSL name.
name?stringThe keyless SSL name.
portnumberThe keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.
tunnel?objectConfiguration for using Keyless SSL through a Cloudflare Tunnel.
bundle_method?enumA ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.
certificatestringThe zone's SSL certificate or SSL certificate and intermediate(s).
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Keyless Certificates
fn get(id: string)
Get a Keyless Certificates
ArgumentTypeDescription
idstringThe ID of the Keyless Certificates
fn lookup()
Look up an existing Keyless Certificates by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Keyless Certificates by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Keyless Certificates to import
fn update(identifier?: string)
Update Keyless Certificates attributes
ArgumentTypeDescription
identifier?stringTarget a specific Keyless Certificates by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Keyless Certificates
ArgumentTypeDescription
idstringThe ID of the Keyless Certificates
fn sync(identifier?: string)
Sync Keyless Certificates state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Keyless Certificates by id (e.g. one discovered by list)

Resources

state(infinite)— Keyless Certificates resource state
@swamp/cloudflare/ssl/origin-tls-client-authv2026.07.21.1origin_tls_client_auth.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
certificatestringThe zone's leaf certificate.
private_keystringThe zone's private key.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Origin Tls Client Auth
fn get(id: string)
Get a Origin Tls Client Auth
ArgumentTypeDescription
idstringThe ID of the Origin Tls Client Auth
fn lookup()
Look up an existing Origin Tls Client Auth by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Origin Tls Client Auth by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Origin Tls Client Auth to import
fn delete(id: string)
Delete the Origin Tls Client Auth
ArgumentTypeDescription
idstringThe ID of the Origin Tls Client Auth
fn sync(identifier?: string)
Sync Origin Tls Client Auth state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Origin Tls Client Auth by id (e.g. one discovered by list)

Resources

state(infinite)— Origin Tls Client Auth resource state
04Previous Versions5
2026.07.21.1
  • Updated: custom_trust_store
  • Updated: client_certificates
  • Updated: custom_certificates
  • Updated: custom_csrs
  • Updated: keyless_certificates
  • Updated: origin_tls_client_auth
  • Updated: certificates
2026.07.18.2

Modified 7 models

2026.06.08.2
  • Updated: custom_trust_store
  • Updated: client_certificates
  • Updated: custom_certificates
  • Updated: custom_csrs
  • Updated: keyless_certificates
  • Updated: origin_tls_client_auth
  • Updated: certificates
2026.05.29.1
  • Updated: custom_trust_store
  • Updated: client_certificates
  • Updated: custom_certificates
  • Updated: custom_csrs
  • Updated: keyless_certificates
  • Updated: origin_tls_client_auth
  • Updated: certificates
2026.05.22.1
  • Added: custom_trust_store
  • Added: client_certificates
  • Added: custom_certificates
  • Added: custom_csrs
  • Added: keyless_certificates
  • Added: origin_tls_client_auth
  • Added: certificates
05Stats
A
100 / 100
Downloads
0
Archive size
31.9 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels