openssl_x509_parse

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Parse an X509 certificate and return the information as an array
openssl_x509_parse(OpenSSLCertificate|string $certificatebool $short_names true): array|false
        if (is_array($certificate)) {

            
$info $certificate;

        } elseif (
CaBundle::isOpensslParseSafe()) {

            
$info openssl_x509_parse($certificatefalse);

        }



        if (!isset(
$info['subject']['commonName'])) {
    public static function castOpensslX509($h, array $aStub $stubbool $isNested)

    {

        
$stub->cut = -1;

        
$info openssl_x509_parse($hfalse);



        
$pin openssl_pkey_get_public($h);

        
$pin openssl_pkey_get_details($pin)['key'];