openssl_pkcs12_export_to_file
(PHP 5 >= 5.2.2, PHP 7, PHP 8)
openssl_pkcs12_export_to_file — Exports a PKCS#12 Compatible Certificate Store File
Parameters
certificate
-
See Key/Certificate parameters for a list of valid values.
output_filename
-
Path to the output file.
private_key
-
Private key component of PKCS#12 file.
See Public/Private Key parameters for a list of valid values.
passphrase
-
Encryption password for unlocking the PKCS#12 file.
options
-
Optional array, other keys will be ignored.
Return Values
Returns true on success or false on failure.