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