php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fred at mycommlog dot com
New email:
PHP Version: OS:

 

 [2006-03-31 13:13 UTC] fred at mycommlog dot com
Description:
------------
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";
	$errorCount++;
}


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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-31 13:26 UTC] tony2001@php.net
 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) 

http://php.net/openssl
 [2006-03-31 14:02 UTC] mike@php.net
Just put those DLLs where your SAPI is located.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC