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
<?php openssl_x509_parse(OpenSSLCertificate|string $certificate, bool $short_names = true): array|false
<?php     public static function castOpensslX509($h, array $a, Stub $stub, bool $isNested)

    {

        $stub->cut = -1;

        $info = openssl_x509_parse($h, false);



        $pin = openssl_pkey_get_public($h);

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