openssl_x509_read() parses the certificate supplied by x509certdata and returns a resource identifier for it.
This function was added in 4.0.6.