(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
openssl_x509_read — Parse an X.509 certificate and return an object for it
$certificate
openssl_x509_read() parses the certificate supplied by certificate and returns an OpenSSLCertificate object for it.
certificate
X509 certificate. See Key/Certificate parameters for a list of valid values.
Returns an OpenSSLCertificate on success or false on failure.
false
An E_WARNING is emitted if the X.509 certificate cannot be retrieved.
E_WARNING
OpenSSL X.509