ID: 13522 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: OpenSSL related Operating System: SunOS 5.7 PHP Version: 4.0.6 New Comment:
Setting to feedback until then. I just thought of something you might try: just build but not install PHP 4.1.2 as a cgi and retry your script; you can run the php binary from the source folder and not risk upsetting the server. Previous Comments: ------------------------------------------------------------------------ [2002-03-18 09:48:28] [EMAIL PROTECTED] No. But we are planning the long-awaited PHP upgrade on that server and I might have some news soon. ------------------------------------------------------------------------ [2002-03-16 11:08:57] [EMAIL PROTECTED] Have you resolved this problem yet? ------------------------------------------------------------------------ [2001-10-11 15:09:41] [EMAIL PROTECTED] I *probably* could, but I really wouldn't want to put RC on that machine. Also I don't think PHP version is the problem - the function should work on PHP 4 >= 4.0.4... it must be something in the configuration. Are there any scripts I could use to test if the openssl extension is set up properly? ------------------------------------------------------------------------ [2001-10-08 18:22:34] [EMAIL PROTECTED] The same script works just fine for me with PHP 4.0.7RC3. Could you try it out too? http://www.php.net/~zeev/php-4.0.7RC3.tar.gz --Wez. ------------------------------------------------------------------------ [2001-10-08 12:42:10] [EMAIL PROTECTED] Below is the *whole* script. The only output I get is "There were errors". It can't seal the data, returning FALSE, but no error messages are generated. <?php $cert_path1 = "/usr/installs/openssl-0.9.6a/demos/maurice/cert.pem"; $cert_path2 = "/usr/installs/openssl-0.9.6a/demos/sign/cert.pem"; $data = "This is the data to be sealed"; $fp = fopen($cert_path1, "r"); $cert = fread($fp, 8192); fclose($fp); $pk1 = openssl_get_publickey($cert); $fp = fopen($cert_path2, "r"); $cert = fread($fp, 8192); fclose($fp); $pk2 = openssl_get_publickey($cert); if (openssl_seal($data, $sealed, $ekeys, array($pk1,$pk2))) echo "Sealed data: $sealed<br />"; else { echo "There were errors<br />"; while ($text = openssl_error_string()) echo "$text <br />"; } openssl_free_key($pk1); openssl_free_key($pk2); ?> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/13522 -- Edit this bug report at http://bugs.php.net/?id=13522&edit=1
