{"record":{"id":"41ab74fb0727f528","repo":"sqlmapproject/sqlmap","slug":"certificate-verification-requires-ssl-create-defau","errorCode":null,"errorMessage":"certificate verification requires ssl.create_default_context","messagePattern":"certificate verification requires ssl\\.create_default_context","errorType":"exception","errorClass":"H2Error","httpStatus":null,"severity":"error","filePath":"lib/request/http2.py","lineNumber":639,"sourceCode":"        code = int(fields[1]) if len(fields) >= 2 and fields[1].isdigit() else 0\n        if not 200 <= code < 300:\n            raise H2Error(\"proxy CONNECT failed: %s\" % status_line)\n        return raw\n    except Exception:\n        try:\n            raw.close()\n        except Exception:\n            pass\n        raise\n\n\ndef _make_ssl_context(verify, ssl_context):\n    context = ssl_context\n    if context is None:\n        if verify:\n            creator = getattr(ssl, \"create_default_context\", None)\n            if creator is None:\n                raise H2Error(\"certificate verification requires ssl.create_default_context\")\n            context = creator()\n        else:\n            creator = getattr(ssl, \"_create_unverified_context\", None)\n            if creator is not None:\n                context = creator()\n            else:\n                context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)\n                context.verify_mode = ssl.CERT_NONE\n    tls_version = getattr(ssl, \"TLSVersion\", None)\n    if tls_version is not None and hasattr(context, \"minimum_version\"):\n        if context.minimum_version < tls_version.TLSv1_2:\n            context.minimum_version = tls_version.TLSv1_2\n    else:\n        for option_name in (\"OP_NO_SSLv2\", \"OP_NO_SSLv3\", \"OP_NO_TLSv1\", \"OP_NO_TLSv1_1\"):\n            option = getattr(ssl, option_name, 0)\n            if option:\n                context.options |= option\n    no_compression = getattr(ssl, \"OP_NO_COMPRESSION\", 0)","sourceCodeStart":621,"sourceCodeEnd":657,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/http2.py#L621-L657","documentation":"Error \"certificate verification requires ssl.create_default_context\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/http2.py:639 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}