note 90186 deleted from function.openssl-pkey-export-to-file by thiago
| From: | thiago@php.net | Date: | Thu, 09 Apr 2009 12:11:57 +0000 |
| Subject: | note 90186 deleted from function.openssl-pkey-export-to-file by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153005@lists.php.net to get a copy of this message | ||
Note Submitter: lolo
----
Nothings is explain about the insert of the CA in the pkc12 certifcate as:
openssl pkcs12 -export -in cert.pem -inkey cert.key -certfile demoCA/ca.pem -out cert.p12
whith the option: -certfile demoCA/ca.pem
If I use openssl_pkcs12_read to read this
cert.p12, then I get:
Array
(
[cert] => -----BEGIN CERTIFICATE-----
cert.pem
-----END CERTIFICATE-----
[pkey] => -----BEGIN RSA PRIVATE KEY-----
cert.key
-----END RSA PRIVATE KEY-----
[extracerts] => Array
(
[0] => -----BEGIN CERTIFICATE-----
demoCA/ca.pem
-----END CERTIFICATE-----
)
)
No indication is given to realise this with:
openssl_pkcs12_export(_to_file).
Does someone has an idea?
lolo