| Version: v2023-09-20 | Includes use: Yes | 
|---|
Criterion name: Client certificate
Matches whether you have configured a client certificate to authenticate requests to edge servers.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "client_certificate" {
  rules_v2023_09_20 {
    name     = "Client certificate"
    comments = "Matches whether you have configured a client certificate to authenticate requests to edge servers."
    criterion {
      client_certificate {
        is_certificate_present = true
        is_certificate_valid = "IGNORE"
      }
    }
  }
}
"criterion": [
  {
    "name": "clientCertificate",
    "options": {
      "isCertificatePresent": true,
      "isCertificateValid": "IGNORE"
    }
  }
]
Options
| Option | Description | 
|---|---|
| is_certificate_present | Executes rule behaviors only if a client certificate authenticates requests.
         | 
| is_certificate_valid | Matches on the certificate's validity. Value is one of:
           
 | 
| enforce_mtls | Specifies custom handling of requests if any of the checks in the  enforce_mtls_settingsbehavior fail. Enable this and use with behaviors such aslog_customso that they execute if the check fails. You need to add theenforce_mtls_settingsbehavior to a parent rule, with its own unique match condition andenableDenyRequestoption disabled. | 
