The following code should obtain a private key and thus print out the echo statement. It doesn't which I can only guess means that my openssl part of php is not configured probperly.
I have enabled it in the php.ini file.
I have set the path to openssl.conf which is in the same directory as openssl which came bundled with php which happens to be version 5.2.6
ssleay32.dll and libeay32.dll are in the root php directory which also has the path env variable set to its path.
I am pulling my hair out. If anyone can help me I will put you in my will.
<html>
<body>
<?php
$privkey = openssl_pkey_new();
if ($privkey)
echo "Private Key Obtained:$privkey\n";
?>
</body>
</html>