openssl_pkcs12_export_to_file

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