|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36932 undefined function openssl_pkey_new()
Submitted: 2006-03-31 13:13 UTC Modified: 2006-03-31 14:02 UTC
From: fred at mycommlog dot com Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 5.1.2 OS: Win XP Home
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fred at mycommlog dot com
New email:
PHP Version: OS:


 [2006-03-31 13:13 UTC] fred at mycommlog dot com
Trying to retrofit XP home with features missing/not included excet in Pro. Using Apache 2.0 with mod_ssl and mod_net as well as the mod_php included with the php 5.12 release.

Docs say I must recompile to get ssl support in php while a note on the same page suggests including a dll from the ext/ direcory. I have modified php.ini to include the extension lib but still get the error.

Is there a way to enable ssl support in php without recompiling on windows? It is fairly unfeasible for me to use gpp/gcc for windows at this time. I need a simpler solution.

Reproduce code:
print "<b>Generating new key...</b><br/>";
$privkey = openssl_pkey_new();
while (($error = openssl_error_string()) !== false) {
    echo $error . "<br/>\n";

Expected result:
this code should generate a 128 bit private key

Actual result:
Fatal error: Call to undefined function openssl_pkey_new() in C:\inetpub\wwwroot\php-ca\modules\setup\create.php on line 39


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-31 13:26 UTC]
 In order to enable this module on a Windows environment, you must copy libeay32.dll from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32)
 [2006-03-31 14:02 UTC]
Just put those DLLs where your SAPI is located.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 14:05:55 2022 UTC