This introduces a security vulnerability. Needs version checking before calling openssl_x509_parse. See. https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html