openssl_pkey_new does not seem to generate a new key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux