For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > June 2005 > openssl_pkey_new does not seem to generate a new key









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author openssl_pkey_new does not seem to generate a new key
steven.xu

2005-06-07, 3:56 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com