I need a little shove in the right direction.
I've got the openSSL extension successfully installed for PHP
http://www.php.net/manual/en/ref.openssl.php
But I'm not having any luck using it.
FYI. I'm wanting to encrypt data in a database with a public key and
decrypt with a private key (openSSL seems to be the best solution..).
system:
Apache/1.3.24
PHP Version 4.3.3
NT 4
echo '<PRE>';
$privkey = openssl_pkey_new();
echo gettype($privkey)."\n";
while (($e = openssl_error_string()) !== false) {
echo $e . "\n";
}
echo '</PRE>';
outputs:
resource
error:0E06D06C:configuration file routines:NCONF_get_string:no value
(above error a total of 6 times)
same prob with
$privkey = openssl_pkey_new(array('config'=>'c:/php/openssl/openssl.cnf'));
I'm using the openssl.cnf that came with php
any help would be greatly appreciated.