openssl_pkcs12_export
(PHP 5 >= 5.2.2, PHP 7, PHP 8)
openssl_pkcs12_export — Exports a PKCS#12 Compatible Certificate Store File to variable
Parameters
certificate
-
See Key/Certificate parameters for a list of valid values.
output
-
On success, this will hold the PKCS#12.
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.