(PHP 4 >= 4.0.6, PHP 5, PHP 7)
Parse an X509 certificate and return the information as an array
array openssl_x509_parse ( mixed $x509cert [, bool $shortnames = true ] )
openssl_x509_parse() returns information about the supplied x509cert, including fields such as subject name, issuer name, purposes, valid from and valid to dates etc.
Parameters:
x509cert
openssl_x509