ID: 13522
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: OpenSSL related
Operating System: SunOS 5.7
Old PHP Version: 4.0.4pl1
PHP Version: 4.0.6
New Comment:
Upgraded to 4.0.6, so now I can use the openssl_error_string() function. However, I
still don't see any errors generated
by openssl_seal(). Below is how I use it:
if (openssl_seal($data, $sealed, $ekeys, array($pk1,$pk2))) {
echo "Sealed: $sealed\n";
}
else {
echo "Could not seal data\n";
while ($text = openssl_error_string())
echo "$text \n";
}
This reports no errors. When I try to open the 'encrypted'
data, I do get some errors (I think these are expected):
error:0407106B:rsa routines:RSA_padding_check_PKCS1_type_2:block type is not 02
error:04065072:rsa routines:RSA_EAY_PRIVATE_DECRYPT:padding check failed
Previous Comments:
------------------------------------------------------------------------
[2001-10-03 08:57:46] [EMAIL PROTECTED]
Please try with PHP 4.0.6 or PHP 4.0.7RC3.
If you are still getting a false return, try using
the openssl_error_string() as mentioned in the online
manual.
--Wez.
------------------------------------------------------------------------
[2001-10-02 17:28:18] [EMAIL PROTECTED]
I can't get the example openssl_seal() code (given in the online manual) to work. The
function always returns FALSE without specifying an error; sealed data and envelope
keys are void. I'm using the demo key and certificate that comes with OpenSSL 0.9.6a
(in demos dir) and all of the other functions (like openssl_get_public_key) seem to
work, i.e. they return resource identifiers.
Config line:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-cybercash=/usr/installs/mck-3.3.1-sparc-sun-solaris2.7''--with-mysql=/usr/local'
'--with-xml' '--with-oci8' '--with-curl=/usr/local''--with-openssl=/usr/local'
'--with-ldap=/usr/local'
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13522&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]