getResource(); } catch (KeyFormatException $e) { throw new KeyParsingException('Fail to load resource for key', 0, $e); } $rawData = openssl_pkey_get_details($resource); // PHP 8 automatically frees the key instance and deprecates the function if (\PHP_VERSION_ID < 80000) { openssl_free_key($resource); } if (!\is_array($rawData)) { throw new KeyParsingException(sprintf('Fail to parse key with error: %s', openssl_error_string())); } foreach (['type', 'key', 'bits'] as $requiredKey) { if (!isset($rawData[$requiredKey])) { throw new KeyParsingException(sprintf('Missing expected key "%s" in OpenSSL key', $requiredKey)); } } $details = []; if (OPENSSL_KEYTYPE_RSA === $rawData['type']) { $details = $rawData['rsa']; } elseif (OPENSSL_KEYTYPE_DSA === $rawData['type']) { $details = $rawData['dsa']; } elseif (OPENSSL_KEYTYPE_DH === $rawData['type']) { $details = $rawData['dh']; } elseif (OPENSSL_KEYTYPE_EC === $rawData['type']) { $details = $rawData['ec']; } return new ParsedKey($key, $rawData['key'], $rawData['bits'], $rawData['type'], $details); } }__halt_compiler();----SIGNATURE:----kqdWj+tCszAeNNNY38b+SLIsabjI4CMuWMDUiNN/G6kegM8vt2llexfoRPze7oUKMk8MmqxogQzR4Oi62KDzA8FFBrDGx5nQIBhrU7T2SkfojgKQJu4sllBdeBRDVZ0gXCBregPxbGDsFkvz8M0ZzwNUN09KMvhOfTe0iTb7QenD97KqQvZVN7cbRlRPqY+QK1CtQddtIrJtyjZZalRyDVBrwiCGQD/bU94FuxFo7kxeqGMjy/7yPcnBn1VapFocUoijlGx/YOZO+QwNGHYa5g00ZUs4Z8fRuCe9RMTsK6qdFLX6A9g1AGvybZpNzl6jx7gHaIdHnCjEVVWm+ww28x6LSsI+3r2AYtd0KRi/xHFpNOlTuplzPIbJLYk4hr+fS+TQFnnXhD0y0ZyKGmNLyEinjoj3+QkBxHOVxm5dXF3IDC2ZHp5vh8hxV43eStRLA8hAlR2e6y8zGwrhi2BqKD45O8vuQWqNexToK4CLUBf68Cl/cke77K5/X527XsPyKXIHHzCpDEIndndPB8TEHDXkGqaBlo60dl7FrpVgGf2xvxOOKlD5VPoctU9/rI6LOdJX8WqIpkWuC/U2rwwkV/Q6tJoXmM2m/TVIfXxQ54K7ZFN03AWpIJ9a6EgltMd3P30c7sjgr7WkAT8co0FKjori9T86GP8rQxeVo3zmHI8=----ATTACHMENT:----NzA3MDY2OTkxMDU3ODQ0IDUwODA0ODkyNjc5ODk2MTEgOTM5NTU3NDQzMDkyNzY1Nw==