Getting an `403: Unauthenticated error` when trying to create a mutual TLS certificate for a domain through terraform

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)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

Mutual TLS is only available on our Zero Trust Enterprise plans.

Please see