openssl_x509_parse
symfony/var-dumper
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 $certificate
,
bool $short_names
=
true
): array|
false
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'
];
Caster/ResourceCaster.php