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_ne w();
while ( ($e = openssl_error_s tring()) !== 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_ne w() [function.openss l-pkey-new]: unable to
load random state; not enough random data!
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_ne w();
while ( ($e = openssl_error_s tring()) !== 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_ne w() [function.openss l-pkey-new]: unable to
load random state; not enough random data!
Comment