{"id":"58130283930e50bd","repo":"redis/redis-py","slug":"no-aia-information-present-in-ssl-certificate","errorCode":null,"errorMessage":"No AIA information present in ssl certificate","messagePattern":"No AIA information present in ssl certificate","errorType":"exception","errorClass":"ConnectionError","httpStatus":null,"severity":"error","filePath":"redis/ocsp.py","lineNumber":216,"sourceCode":"        if der is False:\n            raise ConnectionError(\"no certificate found for ssl peer\")\n        cert = self._bin2ascii(der)\n        return self._certificate_components(cert)\n\n    def _certificate_components(self, cert):\n        \"\"\"Given an SSL certificate, retract the useful components for\n        validating the certificate status with an OCSP server.\n\n        Args:\n            cert ([bytes]): A PEM encoded ssl certificate\n        \"\"\"\n\n        try:\n            aia = cert.extensions.get_extension_for_oid(\n                x509.oid.ExtensionOID.AUTHORITY_INFORMATION_ACCESS\n            ).value\n        except cryptography.x509.extensions.ExtensionNotFound:\n            raise ConnectionError(\"No AIA information present in ssl certificate\")\n\n        # fetch certificate issuers\n        issuers = [\n            i\n            for i in aia\n            if i.access_method == x509.oid.AuthorityInformationAccessOID.CA_ISSUERS\n        ]\n        try:\n            issuer = issuers[0].access_location.value\n        except IndexError:\n            issuer = None\n\n        # now, the series of ocsp server entries\n        ocsps = [\n            i\n            for i in aia\n            if i.access_method == x509.oid.AuthorityInformationAccessOID.OCSP\n        ]","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/redis/redis-py/blob/da03cdc7e8731092b13e395605c3c1fb2de25de1/redis/ocsp.py#L198-L234","documentation":"Error \"No AIA information present in ssl certificate\" thrown in redis/redis-py.","triggerScenarios":"Thrown at redis/ocsp.py:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"da03cdc7e8731092b13e395605c3c1fb2de25de1","analyzedAt":"2026-08-04T20:26:47.563Z","schemaVersion":2}