Page 1 of 1

Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 00:19
by jessecar96
I was told by many websites I can just uncomment the line in php.ini to load openssl. First, that line doesn't exist and when I add it it says the file php_openssl.dll does not exist. Any help? I kinda need this quick

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 00:28
by Sharley
OpenSSL is enabled by default in 1.7.3

Try https://localhost/xampp/index.php

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 01:38
by jessecar96
Image

This happens

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 01:48
by Sharley
This is a browser issue related to not accepting the certificate and maybe a setting in your browser will correct this.

Try another browser to confirm and accept the offered self signed certificate.

This will always happen with a self signed certificate which is used in XAMPP and the alternative is to buy an expensive certificate that has a CA that your browser will use to confirm authentication.

Not required in a self signed cert but as XAMPP is for development and not for production then it is not a requirement.

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 01:55
by jessecar96
same on firefox, ie, and opera

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 02:29
by Sharley
I have just tested on a stock standard installation of XAMPP 1.7.3 and all browsers you listed including others like Iron Portable, SeaMonkey and Pale Moon require me to accept the certificate offered with no problems when I do.

The conclusion to that is perhaps you have an issue with your 1.7.3 installation as OpenSSL is working and serving the https pages by default - I don't know anyway of telling what maybe wrong with your installation except to check that you have the folders \xampp\apache\conf\ssl* and these lines are not commented out in your httpd.conf file
Code: Select all
# Secure (SSL/TLS) connections
Include "conf/extra/httpd-ssl.conf"
and you do indeed have the conf file in the extra folder.

In the httpd-ssl.conf file make sure that these lines look like this
Code: Select all
#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
#       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
#Listen 0.0.0.0:443
#Listen [::]:443
Listen 443
If you just have 0.0.0.0:443 uncommented then this may be the issue you are having, so change it to the above, save the file and restart Apache.

You can also check you have these 2 files in the \xampp\apache\bin folder:
openssl.exe
openssl - looks like a shortcut but if you drag it into an open text editor it will reveal the openssl.ini file.

Run \xampp\xampp-portcheck.exe and make sure Apache (HTTPS) has httpd.exe on port 443

Good luck.

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 04:20
by jessecar96
Sorry to waste your time, but I realized i'm an idiot, and didn't port forward port 443. It works now, thanks for all your help

Re: Enabling openssl in xampp 1.7.3 *Please Help*

PostPosted: 15. March 2011 07:04
by Sharley
Not a problem. :)
I am pleased that you found the gremlin without too much difficulty.

Good luck and best wishes.