{"record":{"id":"9ad8422e5a4558a8","repo":"Seldaek/monolog","slug":"the-openssl-php-plugin-is-required-to-use-ssl-encr","errorCode":null,"errorMessage":"The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler","messagePattern":"The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler","errorType":"exception","errorClass":"MissingExtensionException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/InsightOpsHandler.php","lineNumber":47,"sourceCode":"     * @param string $region Region where InsightOps account is hosted. Could be 'us' or 'eu'.\n     * @param bool   $useSSL Whether or not SSL encryption should be used\n     *\n     * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing\n     */\n    public function __construct(\n        string $token,\n        string $region = 'us',\n        bool $useSSL = true,\n        $level = Level::Debug,\n        bool $bubble = true,\n        bool $persistent = false,\n        float $timeout = 0.0,\n        float $writingTimeout = 10.0,\n        ?float $connectionTimeout = null,\n        ?int $chunkSize = null\n    ) {\n        if ($useSSL && !\\extension_loaded('openssl')) {\n            throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler');\n        }\n\n        $endpoint = $useSSL\n            ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443'\n            : $region . '.data.logs.insight.rapid7.com:80';\n\n        parent::__construct(\n            $endpoint,\n            $level,\n            $bubble,\n            $persistent,\n            $timeout,\n            $writingTimeout,\n            $connectionTimeout,\n            $chunkSize\n        );\n        $this->logToken = $token;\n    }","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/InsightOpsHandler.php#L29-L65","documentation":"Error \"The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/InsightOpsHandler.php:47 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":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}