Provides a Cloudflare Access Mutual TLS Certificate resource. Mutual TLS authentication ensures that the traffic is secure and trusted in both directions between a client and server and can be used with Access to only allows requests from devices with a corresponding client certificate.
resource "cloudflare_access_mutual_tls_certificate" "my_cert" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
name = "My Root Cert"
certificate = var.ca_pem
associated_hostnames = ["staging.example.com"]
}
name
(String) The name of the certificate.account_id
(String) The account identifier to target for the resource. Conflicts with zone_id
.associated_hostnames
(List of String) The hostnames that will be prompted for this certificate.certificate
(String) The Root CA for your certificates.zone_id
(String) The zone identifier to target for the resource. Conflicts with account_id
.fingerprint
(String)id
(String) The ID of this resource.Import is supported using the following syntax:
# Account level import.
$ terraform import cloudflare_access_mutual_tls_certificate.example account/<account_id>/<mutual_tls_certificate_id>
# Zone level import.
$ terraform import cloudflare_access_mutual_tls_certificate.example zone/<zone_id>/<mutual_tls_certificate_id>