Problem getting SSL to work
Posted by: ErikRH (---.wireless.lu.se)
Date: October 14, 2014 09:22AM

Hi there,

I have a problem getting my SSL to work on my localhost page. I know I have to change in the php.ini, the httpd.conf and the httpd-ssl.conf, and I have done this.

I have the exact same files as my mate, the same certificates and the same modules activated in both php and Apache.

I tried to uninstall a bunch of program to no avail.

I am using Wamp Server 2.5 64b
Windows 7, 64-bit.
MySQL version 5.6.17
Apache version 2.4.9
PHP version 5.5.12

The problem is that the icon never turns green, it stays orange.

In my c:\Windows\system32\drivers\etc\hosts file, the following can be noted about the localhost:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost



Regards

Erik

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 14, 2014 11:30AM

If the wampmanager icon is orange then I would have to assume that the Apache service is not starting, as it is Apache that you have made changes to to get SSL working.

This is a resonably big subject and you have given us little to go on, but the first thing to look at is the Apache Error log

wampmanager -> Apache -> Error log

What does that tell you.


If that is not help, then probably the error has happened before Apache gets to open its error log,
So now look at the 'Windows Event Viewer' Apache writes errors to this if they happen before it can open its own error log.


Alternatively you can debug httpd.conf file configurations by doing this :-

Launch a command windows and

CD \wamp\bin\apache\apache2.4.9\bin
httpd -t

This should report error with filename and line number, but only one at a time, fix the reported error and then rerun the 'httpd -t' again until it reports 'All OK'


If you cannot fix the errors yourself, post them here along with relevant sections of httpd.conf or httpd-ssl.conf so we can have a look at them and try and assist.

Here is a link to a HowTo that may help you work out what you have done wrong.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: ErikRH (---.ias.bredband.telia.com)
Date: October 14, 2014 07:40PM

Hi,

Thanks for the reply. I forgot to mention that I have already tested the httpd -t command, and the syntax is okay, at least according to the "test".

And, you are correct when you say that it is Apache that is not starting.

However, I have a lot of entries in my error log. I will post the most recent here; they are all from this morning when I tried, once again, to get this to work.

I do not know what to make of it, but I hope that some of you guys do.

[Tue Oct 14 08:38:18.917964 2014] [mpm_winnt:notice] [pid 10384:tid 404] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:38:20.918078 2014] [mpm_winnt:notice] [pid 16716:tid 304] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:38:21.081088 2014] [mpm_winnt:notice] [pid 10384:tid 404] AH00430: Parent: Child process 16716 exited successfully.
[Tue Oct 14 08:38:24.429279 2014] [mpm_winnt:notice] [pid 14688:tid 404] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:38:24.429279 2014] [mpm_winnt:notice] [pid 14688:tid 404] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:38:24.429279 2014] [core:notice] [pid 14688:tid 404] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:38:24.437279 2014] [mpm_winnt:notice] [pid 14688:tid 404] AH00418: Parent: Created child process 17888
[Tue Oct 14 08:38:25.342331 2014] [mpm_winnt:notice] [pid 17888:tid 304] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:38:41.920279 2014] [mpm_winnt:notice] [pid 14688:tid 404] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:38:43.920394 2014] [mpm_winnt:notice] [pid 17888:tid 304] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:38:43.940395 2014] [mpm_winnt:notice] [pid 14688:tid 404] AH00430: Parent: Child process 17888 exited successfully.
[Tue Oct 14 08:38:45.448481 2014] [mpm_winnt:notice] [pid 17660:tid 404] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:38:45.448481 2014] [mpm_winnt:notice] [pid 17660:tid 404] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:38:45.448481 2014] [core:notice] [pid 17660:tid 404] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:38:45.456482 2014] [mpm_winnt:notice] [pid 17660:tid 404] AH00418: Parent: Created child process 17028
[Tue Oct 14 08:38:46.343532 2014] [mpm_winnt:notice] [pid 17028:tid 304] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:39:13.746100 2014] [mpm_winnt:notice] [pid 17660:tid 404] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:39:15.747214 2014] [mpm_winnt:notice] [pid 17028:tid 304] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:39:15.767215 2014] [mpm_winnt:notice] [pid 17660:tid 404] AH00430: Parent: Child process 17028 exited successfully.
[Tue Oct 14 08:39:18.499372 2014] [ssl:warn] [pid 18992:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:39:18.544374 2014] [mpm_winnt:notice] [pid 18992:tid 336] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:39:18.544374 2014] [mpm_winnt:notice] [pid 18992:tid 336] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:39:18.544374 2014] [core:notice] [pid 18992:tid 336] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:39:18.551375 2014] [mpm_winnt:notice] [pid 18992:tid 336] AH00418: Parent: Created child process 8928
[Tue Oct 14 08:39:20.686497 2014] [ssl:warn] [pid 8928:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:39:20.736500 2014] [mpm_winnt:notice] [pid 8928:tid 212] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:41:00.762221 2014] [mpm_winnt:notice] [pid 18992:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:41:02.762335 2014] [mpm_winnt:notice] [pid 8928:tid 212] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:41:02.783336 2014] [mpm_winnt:notice] [pid 18992:tid 336] AH00430: Parent: Child process 8928 exited successfully.
[Tue Oct 14 08:41:05.391486 2014] [ssl:warn] [pid 18120:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:41:05.434488 2014] [mpm_winnt:notice] [pid 18120:tid 336] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:41:05.434488 2014] [mpm_winnt:notice] [pid 18120:tid 336] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:41:05.434488 2014] [core:notice] [pid 18120:tid 336] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:41:05.442488 2014] [mpm_winnt:notice] [pid 18120:tid 336] AH00418: Parent: Created child process 3324
[Tue Oct 14 08:41:07.560610 2014] [ssl:warn] [pid 3324:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:41:07.610612 2014] [mpm_winnt:notice] [pid 3324:tid 212] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:41:45.800797 2014] [mpm_winnt:notice] [pid 18120:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:41:47.800911 2014] [mpm_winnt:notice] [pid 3324:tid 212] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:41:47.821912 2014] [mpm_winnt:notice] [pid 18120:tid 336] AH00430: Parent: Child process 3324 exited successfully.
[Tue Oct 14 08:41:50.392059 2014] [ssl:warn] [pid 17648:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:41:50.478064 2014] [mpm_winnt:notice] [pid 17648:tid 336] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:41:50.479064 2014] [mpm_winnt:notice] [pid 17648:tid 336] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:41:50.479064 2014] [core:notice] [pid 17648:tid 336] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:41:50.486065 2014] [mpm_winnt:notice] [pid 17648:tid 336] AH00418: Parent: Created child process 13728
[Tue Oct 14 08:41:52.607186 2014] [ssl:warn] [pid 13728:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:41:52.655189 2014] [mpm_winnt:notice] [pid 13728:tid 212] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:42:34.305571 2014] [mpm_winnt:notice] [pid 17648:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:42:36.306686 2014] [mpm_winnt:notice] [pid 13728:tid 212] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:42:36.326687 2014] [mpm_winnt:notice] [pid 17648:tid 336] AH00430: Parent: Child process 13728 exited successfully.
[Tue Oct 14 08:42:38.813829 2014] [ssl:warn] [pid 1380:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:42:38.898834 2014] [mpm_winnt:notice] [pid 1380:tid 336] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:42:38.898834 2014] [mpm_winnt:notice] [pid 1380:tid 336] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:42:38.898834 2014] [core:notice] [pid 1380:tid 336] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:42:38.906834 2014] [mpm_winnt:notice] [pid 1380:tid 336] AH00418: Parent: Created child process 16176
[Tue Oct 14 08:42:40.960952 2014] [ssl:warn] [pid 16176:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:42:41.008955 2014] [mpm_winnt:notice] [pid 16176:tid 212] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:44:05.302776 2014] [mpm_winnt:notice] [pid 1380:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:44:07.302890 2014] [mpm_winnt:notice] [pid 16176:tid 212] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:44:07.324892 2014] [mpm_winnt:notice] [pid 1380:tid 336] AH00430: Parent: Child process 16176 exited successfully.
[Tue Oct 14 08:44:10.049047 2014] [ssl:warn] [pid 18784:tid 336] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:44:10.291061 2014] [mpm_winnt:notice] [pid 18784:tid 336] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Tue Oct 14 08:44:10.291061 2014] [mpm_winnt:notice] [pid 18784:tid 336] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Tue Oct 14 08:44:10.291061 2014] [core:notice] [pid 18784:tid 336] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Tue Oct 14 08:44:10.299062 2014] [mpm_winnt:notice] [pid 18784:tid 336] AH00418: Parent: Created child process 14620
[Tue Oct 14 08:44:12.409182 2014] [ssl:warn] [pid 14620:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 14 08:44:12.470186 2014] [mpm_winnt:notice] [pid 14620:tid 212] AH00354: Child: Starting 64 worker threads.
[Tue Oct 14 08:44:58.451816 2014] [mpm_winnt:notice] [pid 18784:tid 336] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 14 08:45:00.452930 2014] [mpm_winnt:notice] [pid 14620:tid 212] AH00364: Child: All worker threads have exited.
[Tue Oct 14 08:45:00.474932 2014] [mpm_winnt:notice] [pid 18784:tid 336] AH00430: Parent: Child process 14620 exited successfully.

Regards

Erik

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 15, 2014 01:21AM

I think this is the key message from all that

Init: Session Cache is not configured [hint: SSLSessionCache]

What is your SSLSessionCache set to?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: ErikRH (---.ias.bredband.telia.com)
Date: October 15, 2014 03:26AM

Hi,

My SessionCache is the following:

SSLSessionCache "shmcb:C:/wamp/bin/apache/apache2.4.9/logs/ssl_scache(512000)"

I don't know when the error log updates itself, but I have no more entries in it since 01:40 AM, even though I have changed and restarted the server several times after that.

Still, the syntax seems to be okay, according to the test.

Regards

Erik

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: ErikRH (---.wireless.lu.se)
Date: October 15, 2014 02:27PM

A little update:

A soon as I uncomment the following line in the httpd.conf, the wampmanager stays orange.

LoadModule ssl_module modules/mod_ssl.so

I can change all other files according to different tutorials, but as soon as I uncomment this line, the wampmanager will stay orange. It does not matter if the httpd-ssl.conf is all original, or if it is setup according to tutorials.

Also, I forgot to mention that I tested the tutorial you linked above, but to no avail, unfortunately.

I got rid of the SSLSessionCache warning thing I received earlier, it seems...


Completely out of ideas at the moment...

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 15, 2014 05:26PM

Ok,

Make sure your seat belt is firmly fastened !! Things could get a little bumpy from here on.


I just tried to run Apache2.4.9 with PHP5.5.12 and it all worked fine, but when I tried another PHP version I got the same error as you are getting.


Right, Apaches mod_ssl is basically a wrapper for 2 dll's that come with the PHP distibution called

libaey32.dll and sslaey32.dll

NOTE: The 32 does NOT signify a 32bit version!

So when Apache tried to load mod_ssl.so that in turn tries to load these 2 dll's. In windows when a dll (the .so files are actually dll's) tries to load another DLL and cannot do so for some reason, you get this rather unhelpful error message that you are getting.

So what I think has happened is that the libaey32.dll and sslaey32.dll that came with this version of PHP were either compiled for Apache2.2 or were in some way in error and cannot be loaded.


Now libaey32.dll and sslaey32.dll are actually part of another project completely, called OpenSSL

So what I suggest is that you download the latest version of these 2 dll's from their site

As you are using 64bit wampserver click this link on that page 'Win64 OpenSSL v1.0.1i Light'

That will download an installer. Install this into the C:\ folder, it will probably suggest a folder name like OpenSSL-Win64.

When it asks you what you want to do in a dialog called 'Select Additional Tasks' DO NOT click the option that says 'Copy OpenSSL DLLs to the Windows System directory.

Just select the option

'The OpenSSL binaries (/bin) directory

This will create all the required files in the 'C:\OpenSSL-Win64' folder and a 'bin' folder beneath that.


Now make sure WAMPServer is stopped.

MAKE a backup of libaey32.dll and sslaey32.dll from the `\wamp\bin\php\php5.5.12` folder.

Then copy the libaey32.dll and sslaey32.dll from the 'C:\OpenSSL-Win64\bin' folder into your
`\wamp\bin\php\php5.5.12` folder.

Now you can restart WAMPServer and hopefully these new dll's will load properly. As an extra benefit you will have more uptodate versions that presumably have fixes for the heartbleed bug as well.


Now to be absolutely sure it will pick up these new dll's do the following to make wampserver refresh the SYMLINKS in the apache folder with links to the new libaey32.dll and sslaey32.dll

Using the wampmanager do

wampmanager -> Apache -> Version -> and click on the version number on this menu list ( probably 2.4.9)


I hope this fixes the issue.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: ErikRH (---.ias.bredband.telia.com)
Date: October 16, 2014 09:52PM

I cannot tell you how happy I am to tell you that it now works.

I have spent tens of hours to make this work, but to no avail, which has been very frustrating.

Once again, many thanks. smiling smiley

Regards

Erik

Options: ReplyQuote
Re: Problem getting SSL to work
Posted by: amdeus (---.dsl.teksavvy.com)
Date: December 02, 2015 04:31PM

Hello,

I got the same error

[ssl:warn] [pid 16176:tid 212] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]

But this Error has nothing to do with dlls. it was just the configuration in apache httpd.conf

you need to load the module socache_shmcb in httpd.conf

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

because in the httpd-ssl.conf uses

SSLSessionCache "shmcb:c:/Apache24/logs/ssl_scache"

Options: ReplyQuote


Sorry, only registered users may post in this forum.