{
  "id": "nginx/ssl-ocsp-stapling-verify-failed",
  "signature": "nginx: [emerg] SSL: OCSP stapling verify failed (SSL: error:2707307E:OCSP routines:OCSP_basic_verify:certificate verify error) while verifying certificate",
  "signature_zh": "OCSP 装订验证失败（SSL：错误：2707307E：OCSP 例程：OCSP_basic_verify：证书验证错误）",
  "regex": "OCSP stapling verify failed.*OCSP_basic_verify:certificate verify error",
  "domain": "nginx",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "OCSP stapling fails because the certificate chain is incomplete or the OCSP responder certificate is not trusted by nginx's CA bundle.",
  "root_cause_type": "generic",
  "root_cause_zh": "OCSP 装订失败，因为证书链不完整或 OCSP 响应程序证书不受 nginx 的 CA 包信任。",
  "versions": [
    {
      "version": "nginx/1.18.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx/1.20.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx/1.24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx/1.26.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Without verification, nginx will staple any OCSP response, including potentially forged ones, weakening TLS security.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The responder's certificate must be in the trusted store; changing the URL does not fix trust issues.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "OCSP responses are signed by the CA, not the server certificate; the CA's certificate must be in the trust chain.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the full certificate chain (including intermediate CA) is specified in ssl_certificate: `cat server.crt intermediate.crt > fullchain.crt` and set `ssl_certificate /path/to/fullchain.crt;`",
      "success_rate": 0.9,
      "how": "Ensure the full certificate chain (including intermediate CA) is specified in ssl_certificate: `cat server.crt intermediate.crt > fullchain.crt` and set `ssl_certificate /path/to/fullchain.crt;`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set ssl_trusted_certificate to the CA bundle that includes the OCSP responder's issuer: `ssl_trusted_certificate /etc/ssl/certs/ca-bundle.crt;`",
      "success_rate": 0.85,
      "how": "Set ssl_trusted_certificate to the CA bundle that includes the OCSP responder's issuer: `ssl_trusted_certificate /etc/ssl/certs/ca-bundle.crt;`",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using Let's Encrypt, use the fullchain.pem file: `ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;`",
      "success_rate": 0.95,
      "how": "If using Let's Encrypt, use the fullchain.pem file: `ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "确保 ssl_certificate 指定完整的证书链（包括中间 CA）：`cat server.crt intermediate.crt > fullchain.crt` 并设置 `ssl_certificate /path/to/fullchain.crt;`",
    "将 ssl_trusted_certificate 设置为包含 OCSP 响应程序颁发者的 CA 包：`ssl_trusted_certificate /etc/ssl/certs/ca-bundle.crt;`",
    "如果使用 Let's Encrypt，请使用 fullchain.pem 文件：`ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling_verify",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-05-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}