I am trying to add mTLS to a domain with Terraform, but I am getting an Unauthenticated error.
Terraform code:
resource "cloudflare_access_mutual_tls_certificate" "<name>" {
zone_id = <zone_id>
name = "Mutual TLS Certificate"
certificate = <cert>
associated_hostnames = [<host_name>]
}
My api token permissions:
The error message:
Error: error creating Access Mutual TLS Certificate for zone "<zone_id>": HTTP status 403: Authentication error (10000)