openssl_pkcs12_export

Supported Versions: PHP 5 >= 5.2.2, PHP 7, PHP 8
Exports a PKCS#12 Compatible Certificate Store File to variable
openssl_pkcs12_export(¬†¬†¬†¬†OpenSSLCertificate|string $certificate,¬†¬†¬†¬†string &$output,¬†¬†¬†¬†OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key,¬†¬†¬†¬†string $passphrase,¬†¬†¬†¬†array $options = []): bool