|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-06-08 22:46 UTC] requinix@php.net
-Summary: openssl_pkcs12_export allows invalid extracerts
+Summary: openssl_pkcs12_export/export_to_file $args
undocumented
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
[2017-06-08 22:46 UTC] requinix@php.net
[2017-11-03 22:12 UTC] mjones@php.net
[2017-11-03 22:13 UTC] mjones@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: mjones
[2017-11-03 22:13 UTC] mjones@php.net
[2020-02-07 06:06 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
Description: ------------ openssl_pkcs12_read returns true when "garbage" is inserted in the optional extra certs. No error is logged, while an error is expected. The test can be executed in php-src's (git repo) in ext/openssl/tests/ Test script: --------------- $p12 = "./p12_with_extra_certs.p12"; $pass = "qwerty"; openssl_pkcs12_read(file_get_contents($p12), $certs, $pass); //var_dump($certs); $ok = openssl_pkcs12_export($certs['cert'], $out, $certs['pkey'], $pass, array('blup')); var_dump($ok); Expected result: ---------------- Expect a warning to be throw about "blup" not being a valid X509 certificate. Actual result: -------------- bool(true)