Prior to PHP 8.0.0, there were 3 resource types defined in the OpenSSL module:
OpenSSL key
OpenSSL X.509
OpenSSL X.509 CSR