This is probably a stupid question, but as far as I can tell there's not much difference aside the additional parameters in pkcs12 version.
views:
62answers:
2
+2
A:
From the docs, the output file format differs:
openssl_pkcs12_export() stores x509 ... in a PKCS#12 file format.
openssl_x509_export() stores x509 ... in a PEM encoded format.
Frank Farmer
2010-01-02 14:12:47
+3
A:
More importantly than the formats themselves, the pkcs12 export stores off the private key along with the certificate, whereas the x509 one just stores the certificate.
GregS
2010-01-02 14:16:38