Page 1 of 1

help with openssl and how to test

PostPosted: 14. October 2010 12:07
by megos
Hi all,

I downloaded XAMPP the other day for my Windows 7 (XAMPP 1.7.3). I want to enable OpenSSL and test it but I can't seem to find it anywhere? There are no dll's related to it and my php.ini does not contain ;extension=php_openssl.dll

Confused :(

According to phpinfo() its already enabled.. so how do i test it?

Re: help with openssl and how to test

PostPosted: 14. October 2010 13:51
by Nobbie
megos wrote:There are no dll's related to it and my php.ini does not contain ;extension=php_openssl.dll


It is statically linked into the core module, you need not to specify any extension for PHP.

megos wrote:so how do i test it?


Simply run your tests (as if you had enabled php_openssl.dll).

Re: help with openssl and how to test

PostPosted: 14. October 2010 14:07
by megos
I run them but i get errors like

Code: Select all
Warning: openssl_pkey_export() [function.openssl-pkey-export]: cannot get key from parameter 1 in C:\xampp\htdocs\test.php on line 16

Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\test.php on line 19


Warning: openssl_public_encrypt() [function.openssl-public-encrypt]: key parameter is not a valid public key in C:\xampp\htdocs\test.php on line 28

Warning: openssl_private_decrypt() [function.openssl-private-decrypt]: key parameter is not a valid private key in C:\xampp\htdocs\test.php on line 32


I suspect it can't find the conf file? Help :D

Edit.. it is pointing to the correct file..

OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf

Re: help with openssl and how to test

PostPosted: 17. October 2010 00:06
by megos
can anyone help me? i cant seem to get help.

php.ini does not have any ;extension=php_openssl.dll (there is also no php_openssl.dll anywhere)

openssl found in apache/bin

phpinfo() tells me it's enabled and is pointing to the conf correctly.

libeay32.dll also in apache/bin.

I've added the dll to my PATH and restarted my system, and XAMPP.

I've googled everywhere for help but old tutorials only seem to mention uncommenting the extension=php_openssl.dll bit.

Re: help with openssl and how to test

PostPosted: 17. October 2010 18:35
by megos
Error log

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

Re: help with openssl and how to test

PostPosted: 18. October 2010 00:10
by Dariusc123456
Openssl have been a problem on window servers. I dont know how but one day, it started working for me but it rarely works now but I have no use for it at the moment other than making self-signed certificates.

Re: help with openssl and how to test

PostPosted: 27. November 2010 05:04
by mawg
megos wrote:can anyone help me? i cant seem to get help.

php.ini does not have any ;extension=php_openssl.dll (there is also no php_openssl.dll anywhere)

openssl found in apache/bin

phpinfo() tells me it's enabled and is pointing to the conf correctly.

libeay32.dll also in apache/bin.

I've added the dll to my PATH and restarted my system, and XAMPP.

I've googled everywhere for help but old tutorials only seem to mention uncommenting the extension=php_openssl.dll bit.



Just to say that I also have this problem, several years after the original poster. I can't find help anywhere & will soon have to look for alternatives (urk! Microsoft)

Re: help with openssl and how to test

PostPosted: 27. November 2010 05:10
by mawg
megos wrote:Hi all,

I downloaded XAMPP the other day for my Windows 7 (XAMPP 1.7.3). I want to enable OpenSSL and test it but I can't seem to find it anywhere? There are no dll's related to it and my php.ini does not contain ;extension=php_openssl.dll

Confused :(

According to phpinfo() its already enabled.. so how do i test it?



Me too! Any answers?

Re: help with openssl and how to test

PostPosted: 07. June 2011 14:38
by Neil_Smith
I'm using Windows 7 64bit and I've been having a right headache with this issue.

After testing various methods I've found the best solution.

1. Click on the START button
2. Click on CONTROL PANEL
3. Click on SYSTEM AND SECURITY
4. Click on SYSTEM
5. Click on ADVANCED SYSTEM SETTINGS
6. Click on ENVIRONMENT VARIABLES
7. Under "System Variables" click on "NEW"
8. Enter the "Variable name" OPENSSL_CONF
9. Enter the "Variable value". My is - C:\XAMPP\php\extras\openssl\openssl.cnf
10. Click "OK" and close all the windows and RESTART your computer.

The OPENSSL should be correctly working.

Hopefully XAMPP will make the installation script add this as a default!

EDIT: Now getting the error "string(31) "C:/xampp/apache/bin/openssl.cnf" error:0E06D06C:configuration file routines:NCONF_get_string:no value"

ARRRGGGHH!!!!