openssl_pkcs12_export_to_file
Exports a PKCS#12 Compatible Certificate Store File
Description
bool openssl_pkcs12_export_to_file(
OpenSSLCertificatestring $certificate
,
string $output_filename
,
#[\SensitiveParameter]OpenSSLAsymmetricKeyOpenSSLCertificatearraystring $private_key
,
#[\SensitiveParameter]string $passphrase
,
array $options
= []
)
Parameters
-
x509
-
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.