DeveloperSide.NET Forums

DeveloperSide.NET => Anything else goes here => Topic started by: christopherward on May 26, 2005, 09:14:19 PM



Title: OpenSSL On PHP
Post by: christopherward on May 26, 2005, 09:14:19 PM
openssl_pkey_new() fails with the following errors:

error:02001003:system library:fopen:No such process
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib
error:02001003:system library:fopen:No such process
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib

I am running PHP 5.0.3 and OpenSSL 0.9.7c. Per the documentation, I have set the OPENSSL_CONF environment variable on my PHP server to point to the OPENSSL.CNF file. I have verified that libeay32.dll resides in the correct directory. I believe I have a "valid openssl.cnf" file, but it still doesn't work....

My test script is:
<?php
$privkey = openssl_pkey_new();

while (($e = openssl_error_string()) !== false)
{ print($e . "<BR>");
}
?>

Does anyone see what I'm missing? Thx for your help!