openssl_pkey_new does not seem to generate a new key
| From: | steven.xu | Date: | Tue, 07 Jun 2005 00:49:34 +0000 |
| Subject: | openssl_pkey_new does not seem to generate a new key | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26071@lists.php.net to get a copy of this message | ||
php 4.3.10, openssl-0.9.6m
OPENSSL_CONF,SSLEAY_CONF environmental variable has been set
<?
$opensslconf = "c:\\usr\\local\\ssl\\openssl.cnf";
$config = array("config" => $opensslconf);
$privkey = openssl_pkey_new($config);
while ($msg = openssl_error_string())
echo $msg . "<br />\n";
openssl_pkey_export($privkey, $keydata);
echo $keydata;
?>
the php execute result:
error:02001003:system library:fopen:No such process
error:2006D002:BIO routines:BIO_new_file:system lib
error:0E064002:configuration file routines:CONF_load:system lib