PHP OpenSSL - openssl_private_encrypt crashes webpage -


this has been reported @ bugs.php.net. if replace libeay32.dll , ssleay32.dll in xampp/apache/bin same files in xampp/php/ works cannot use ssl

i need use ssl, has been able resolve this?


i using openssl library in php(5.4.7) on xampp(1.8.1) encryption, decryption, etc. using ssl on localhost.

i able create private-public key pair using openssl_pkey_new() method , generate certificate well.

but when try access root certificate (create using above function) webpage crashes:

$root_private_key = openssl_get_privatekey(file_get_contents($path), $pass); echo "key: " . $root_private_key; // key: resource id #11 openssl_private_encrypt($plaintext, $encrypted_data, $root_private_key); 

i tried using phpseclib library same thing.

i have tried set ini_set('max_execution_time', 0);


i checked php log , empty , found following in apache logs:

[mpm_winnt:notice] [pid 3312:tid 484] ah00428: parent: child process exited status 3221225477 -- restarting. [ssl:warn] [pid 3312:tid 484] ah01873: init: session cache not configured [hint: sslsessioncache] [mpm_winnt:notice] [pid 3312:tid 484] ah00455: apache/2.4.3 (win32) openssl/1.0.1c php/5.4.7 configured -- resuming normal operations [mpm_winnt:notice] [pid 3312:tid 484] ah00456: server built: aug 18 2012 12:41:37 [core:notice] [pid 3312:tid 484] ah00094: command line: 'apache\\bin\\httpd.exe -d c:/xampp/apache' [mpm_winnt:notice] [pid 3312:tid 484] ah00418: parent: created child process 1520 ah00548: namevirtualhost has no effect , removed in next release c:/xampp/apache/conf/extra/httpd-vhosts.conf:19 [ssl:warn] [pid 1520:tid 496] ah01873: init: session cache not configured [hint: sslsessioncache] [mpm_winnt:notice] [pid 1520:tid 496] ah00354: child: starting 150 worker threads. 

i have tried following none of helps:

php openssl_public_encrypt causing page timeout/connection reset?

php/timeout/connection server reset?

apache server (xampp) crashes when using openssl function

php dies unexpectedly without error

i appreciate help/suggestion.

this has been reported @ bugs.php.net. if replace following files in xampp/apache/bin same files in xampp/php/ works:

  • libeay32.dll
  • ssleay32.dll

but, ssl cannot used otherwise apache gives error when starting up.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -