openssl_x509_read

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Parse an X.509 certificate and return an object for it
<?php openssl_x509_read(OpenSSLCertificate|string $certificate): OpenSSLCertificate|false