How do I get OpenSSL to work with PHP & generate keys?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How do I get OpenSSL to work with PHP & generate keys?

Postby mawg » 27. November 2010 09:14

Short question: where can I find a good ReadMe or similar to tell me how to get OpenSSL working with Xampp on Windows?

Long background:

Phpino() shows Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Loaded modules ar core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_auth_digest mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_cgi mod_dav mod_dav_fs mod_dav_lock mod_dir mod_env mod_headers mod_include mod_info mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_ssl mod_status mod_autoindex_color mod_php5 mod_perl mod_apreq2

OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf and C:/xampp/apache/bin/ does contain OpenSSL.exe

Plus openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 0.9.8l 5 Nov 2009 OpenSSL Header Version OpenSSL 0.9.8l 5 Nov 2009 and Native OpenSSL support enabled and _SERVER["OPENSSL_CONF"] C:/xampp/apache/bin/openssl.cnf

But, when I

$keys = openssl_pkey_new();
if ($keys === False)
{
var_dump(error_get_last());
echo '<hr>' . openssl_error_string() .'<br>';
Die('Can\'t generate new key pair'); // ToDo: make make an error page?
}

I get error:02001003:system library:fopen:No such proces
mawg
 
Posts: 7
Joined: 27. November 2010 05:01

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests