Edit report at https://bugs.php.net/bug.php?id=61401&edit=1
ID: 61401 Comment by: a...@php.net Reported by: a...@php.net Summary: ext\openssl\tests\004.phpt fails Status: Open Type: Bug Package: OpenSSL related Operating System: windows PHP Version: Irrelevant Block user comment: N Private report: N New Comment: openssl_pkey_new will fail on windows for the same reason Previous Comments: ------------------------------------------------------------------------ [2012-03-15 15:52:37] a...@php.net Description: ------------ When the third param for openssl_csr_new is not specified or empty, the default system config is used. If it could not be found, the code generating the private key is ommited and no warnings appear. On linux the default config path is set to usually existent file /usr/lib/ssl/openssl.cnf , on windows it's /usr/local/ssl/openssl.cnf which won't be found anyway. Test script: --------------- php -r "$a = array(); var_dump(openssl_csr_new(array(),$a,array(),array()));" Expected result: ---------------- Warning: openssl_csr_new(): key array must be of the form array(0 => key, 1 => phrase) in Command line code on line 1 Warning: openssl_csr_new(): add1_attr_by_txt challengePassword_min -> 4 (failed) in Command line code on line 1 bool(false) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61401&edit=1