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