Hi,

I'm stuck for 3 days now on the following
problem : whatever I try, i can't get
the openssl_seal function to work.

I use PHP 4.0.4 on a NT4 server, with IIS.
I also tried PHP 4.0.4 on a WIN2K server with IIS and Apache. Same result.

I use the following code :

----------------------------------
$data="test data";

$fp = fopen("test.cer", "r");
$cert = fread($fp, 8192);
fclose($fp);
$k = openssl_get_publickey($cert);
openssl_seal($data, $sealed, $ekeys, array($k));
openssl_free_key($k);

echo $sealed;
-----------------------------------

$k returns a correct id BUT
$sealed and $ekeys remains
ALWAYS blank/false, as if the seal function
didn't work at all.

I precise that with the same .cer, the
functions openssl_sign & verify are
working well.

So anyone has an idea of the problem ?

Thanks for your help,

eXXos.








-- 
PHP Windows 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]

Reply via email to