Has anyone had any luck with this function on any platform? Or have
any insight?
I'm hoping to use the OpenSSL module to encrypt data in a database (no
https or certification stuff necessary). (public key on server...
private key all nice n secure...)
I've been able to work with the example keys that came with the
distrobution just fine but have been unable generate my own..
<?php
$privkey = openssl_pkey_new();
while ( ($e = openssl_error_string()) !== false )
debug($e);
?>
On NT this outputs:
outputs:
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
error:0E06D06C:configuration file routines:NCONF_get_string:no value
On Solaris, I get:
Warning: openssl_pkey_new() [function.openssl-pkey-new]: unable to
load random state; not enough random data!