{
  "id": "unit2-cert-automation",
  "version": "0.1.0",
  "stage": null,
  "title_en": "Certificate Automation, up to 20 hostnames",
  "titles_json": {
    "en": "Certificate Automation, up to 20 hostnames"
  },
  "inputs_schema": {
    "domain": "string",
    "origin": "own_property | test_domain | stranger",
    "hosts": [
      "string"
    ],
    "out_of_scope_hosts": [
      "string"
    ]
  },
  "steps": [
    "inventory every hostname given plus every hostname found in public certificate transparency logs for the domain",
    "record issuer, expiry and current renewal method per hostname",
    "move each hostname to automatic renewal: an ACME client on the server or the host managed certificate",
    "check any CAA record allows the certificate authority used for renewal",
    "renewal or renewal dry run per hostname",
    "retest every hostname",
    "signed record"
  ],
  "acceptance_tests_json": [
    {
      "test_id": "cert_inventory_complete",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "ct_log",
      "definition": "Every hostname given, and every hostname under the domain found in public certificate transparency logs for certificates valid at the scan, is in the inventory with issuer and expiry, or is listed in out_of_scope_hosts by the client in writing."
    },
    {
      "test_id": "cert_auto_renewal_set",
      "test_version": "1",
      "outside_observable": false,
      "evidence_source": "client_export",
      "definition": "Each inventoried hostname has an automatic renewal method recorded (ACME client or host managed certificate) with evidence: a configuration export or the host console setting."
    },
    {
      "test_id": "cert_renewal_proved",
      "test_version": "1",
      "outside_observable": false,
      "evidence_source": "client_export",
      "definition": "Each inventoried hostname shows a renewal (a new certificate seen in certificate transparency logs) or a successful renewal dry run log during the unit."
    },
    {
      "test_id": "tls_host_valid",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "tls_handshake",
      "definition": "For each inventoried hostname, the certificate served is authorized, matches the host name, is already valid and has 14 or more days left. Not applicable when the host has no address or refuses the connection and the client marked it retired in writing."
    },
    {
      "test_id": "caa_allows_issuer",
      "test_version": "1",
      "outside_observable": true,
      "evidence_source": "public_dns",
      "definition": "Where a CAA record applies to the hostname (RFC 8659), it permits the certificate authority used for renewal. Not applicable when no CAA record applies."
    },
    {
      "test_id": "cert_accounts_client_owned",
      "test_version": "1",
      "outside_observable": false,
      "evidence_source": "client_export",
      "definition": "Each ACME account or managed certificate sits in an account the client owns, not in a firm account."
    }
  ],
  "risk_class": "read_only",
  "signer_type": "accountable_reviewer",
  "turnaround_hours": null,
  "price_direct_usd": "190.00",
  "price_wholesale_usd": "120.00",
  "tier_rule": {
    "tier_share": {
      "1": "1.00",
      "2": "0.85",
      "3": "0.55",
      "4": "0.35"
    },
    "runbook_mode_discount": "0.20",
    "runbook_price_direct_usd": "152.00",
    "runbook_price_wholesale_usd": "96.00"
  },
  "warranty_terms_hash": null,
  "allowed_tools": [
    "doh_read",
    "tls_handshake",
    "ct_log_read"
  ],
  "approval_rules": {
    "mode": "runbook",
    "client_applies_every_change": true,
    "write_tools": []
  },
  "review_level": "full",
  "bench_min_cases": 40,
  "bench_pass_rate": null,
  "bench_passed_at": null,
  "status": "draft"
}
