hey all,
i am trying to get the contents of a page running on a secure server (https) from another machine. the machine running the php script is running PHP Version 4.3.4, with registered streams: php, http, ftp, https, ftps. also, php was compiled with '--with-openssl=/local/openssl-0.9.7c', and this is all running with Apache/1.3.29 under Sun Solaris.
the script is as follows:
<?
ini_set("display_errors", "1");
echo "test";
echo "<br >";
$dh = fopen("https://servername:port",'r');
$result = fread($dh,8192);
echo $result;
?>
and this is the following error message:
Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:24064064:random number generator:SSLEAY_RAND_BYTES😛RNG not seeded error:05067003😃iffie-Hellman routines😃H_generate_key:BN lib error:14098005:SSL routines:SSL3_SEND_CLIENT_KEY_EXCHANGE😃H lib in /path/to/test.php on line 5
Warning: fopen(): php_stream_sock_ssl_activate_with_method: SSL handshake/connection failed in /path/to/test.php on line 5
Warning: fopen(https://servername:port): failed to open stream: Unable to activate SSL mode in /path/to/test.php on line 5
Warning: fread(): supplied argument is not a valid stream resource in /path/to/test.php on line 6
i am really not sure of the openSSL setup since this is not my server, but does this seem like something has been configured wrong, or something is missing? i am very confused on how to go about solving this. if anyone can provide any hints, i would greatly appreciate it.
thanks