Wampserver 2.2 and certificate installation issue
Posted by: titicamara (83.229.122.---)
Date: July 29, 2013 04:55PM

Hello guys!!

I need help to resolve this:

I've installed Wampserver 2.2 and i want to use https with my apache server. I've paid a Go DADDy certificate, they provide me two files " mydomaine.crt" and " gd_iis_intermediates.p7b"(that i converted in intermediate.crt).

First of all, i've generated a CSR with openSSL for my certificate and after receiving the certificate i went to configure these files:

httpd.conf:
uncomment

loadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf


httpd-ssl.conf:
listen 443
< VirtualHost _default_:443>
DocumentRoot "C:/wamp/bin/apache/apache2.2.22/htdocs"
ServerName Localhost:443
ErrorLog "C:/wamp/bin/apache/apache2.2.22/logs/error.log"
TransfertLog "C:/wamp/bin/apache/apache2.2.22/logs/access.log"
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/wamp/bin/apache/apache2.2.22/conf/mydomain.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.2.22/conf/mydomain.key"
SSLCertificateChainFile "C:/wamp/bin/apache/apache2.2.22/conf/intermediate.crt"
</VirtualHost>

But when i restart Wampserver it stay on orange mode. I really need a help on it.

Please help me i'm not so good on Wampserver and apache.

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as13285.net)
Date: July 29, 2013 06:22PM

Look in the 'apache error log' and/or the 'apache access log' for error messages.

left click wampmanager icon in the system tray -> Apache -> Apache access log
left click wampmanager icon in the system tray -> Apache -> Apache error log

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: titicamara (83.229.122.---)
Date: July 29, 2013 07:27PM

Hi,

Here is the content of Apache error log:

When i comment "Include conf/extra/httpd-ssl.conf" on httpd.conf


[Mon Jul 29 17:52:12 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jul 29 17:52:12 2013] [warn] Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Jul 29 17:52:14 2013] [warn] Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Jul 29 17:52:14 2013] [notice] Apache/2.2.22 (Win32) PHP/5.4.3 mod_ssl/2.2.22 OpenSSL/0.9.8u configured -- resuming normal operations
[Mon Jul 29 17:52:14 2013] [notice] Server built: May 13 2012 13:32:42
[Mon Jul 29 17:52:14 2013] [notice] Parent: Created child process 1944
[Mon Jul 29 17:52:14 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Jul 29 17:52:14 2013] [warn] Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Jul 29 17:52:15 2013] [warn] Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Mon Jul 29 17:52:15 2013] [notice] Child 1944: Child process is running
[Mon Jul 29 17:52:15 2013] [notice] Child 1944: Acquired the start mutex.
[Mon Jul 29 17:52:15 2013] [notice] Child 1944: Starting 64 worker threads.
[Mon Jul 29 17:52:15 2013] [notice] Child 1944: Starting thread to listen on port 443.



When i uncomment Include conf/extra/httpd-ssl.conf on httpd.conf and restart Wampserver


Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs
Unable to open logs

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as13285.net)
Date: July 29, 2013 10:07PM

Hwo about this file 'C:/wamp/bin/apache/apache2.2.22/logs/error.log'

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: titicamara (83.229.122.---)
Date: July 30, 2013 09:24AM

Here is the content of 'C:/wamp/bin/apache/apache2.2.22/logs/error.log'

[Mon Jul 29 14:16:40 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:17:57 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:21:13 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:22:20 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:22:40 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:33:27 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:33:44 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:35:49 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:50:51 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 14:59:36 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:00:05 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:09:52 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:25:42 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:26:30 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:57:14 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 15:58:12 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 16:18:42 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 16:59:02 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 17:06:27 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 17:06:38 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 17:50:08 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 17:50:41 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:17:39 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:18:51 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:18:57 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:19:02 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:19:08 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:19:40 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:19:45 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.
[Mon Jul 29 18:19:50 2013] [error] (OS 3)The system cannot find the path specified. : could not open transfer log file C:/Apache2/logs/ssl_request.log.

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as13285.net)
Date: July 30, 2013 01:37PM

There is so much you seem to be missing here.

The certificate you got from GODADDY will only work correctly for the ACTUAL site it was generated for.
I very much doubt they created a validated certificate for localhost

So you need to create yourself a SELF SIGNED Certificate ( no cost, and all you require is available with WAMP )

Have a look through this for some help on how to do that [forum.wampserver.com]


Your current problem is quite obvious from the error messages.
You dont have a TransfertLog "C:/wamp/logs/access.log" statement in your virtual hosts definintion.


Suggested changes to httpd-ssl.conf, I have assumed that your site is in folder c:\wamp\www\project1, please make change accordingly to match your real situation.


httpd-ssl.conf:
   listen 443
   < VirtualHost _default_:443>
        DocumentRoot "C:/wamp/www/project1
        ServerName project1.dev:443
        ErrorLog "C:/wamp/logs/error.log"
        TransfertLog "C:/wamp/logs/access.log"
         SSLEngine on
         SSLProtocol all -SSLv2
         SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
         SSLCertificateFile "C:/wamp/bin/apache/apache2.2.22/conf/mydomain.crt"
         SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.2.22/conf/mydomain.key"
         SSLCertificateChainFile "C:/wamp/bin/apache/apache2.2.22/conf/intermediate.crt"
</VirtualHost>

But of course you are going to have to generate a self signed certificate and install that into Apache instead of the one from GoDADDY.


Edit your hosts file 'c:\windows\system32\drivers\etc\hosts' and add a line
 127.0.0.1  project1.dev

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: nitin.pant (112.196.13.---)
Date: September 15, 2015 02:18PM

I faced same problem, please anybody will help me. ASAP.

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as43234.net)
Date: September 15, 2015 03:32PM

Which problem?

What environment have yoU got? Answer these questions Answer in your first post Oh and start a new thread!!!

Have you read through this post Checks to be made if you have a problem

---------------------------------------------------------------------------------------------
(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: Wampserver 2.2 and certificate installation issue
Posted by: nitin.pant (112.196.13.---)
Date: September 16, 2015 12:06PM

Hi,
I am using wamp server on my window server 2012.
i am follow all the step for making a private key, as well as .csr file and purchase the ssl certificate to godaddy they will give me two .cert file one of this is a bundle file. Now my problem is when i make a entry to httpd-ssl.conf and restart the server.
The icon of the wamp server should show's orange and i will also check the errror log of apache. and it will show error

"SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
AH00016: Configuration Failed".

Please any body can help me.

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as43234.net)
Date: September 16, 2015 03:13PM

This might help [stackoverflow.com]

---------------------------------------------------------------------------------------------
(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: Wampserver 2.2 and certificate installation issue
Posted by: nitin.pant (112.196.13.---)
Date: September 16, 2015 03:26PM

It doesn't applying on me. please ask me another suggestion

Options: ReplyQuote
Re: Wampserver 2.2 and certificate installation issue
Posted by: RiggsFolly (---.as43234.net)
Date: September 16, 2015 04:48PM

Setting up ssl is a fairly complex proceedure, and without knowing what and how you have set it all up its almost impossible to guess a solution remotely.

Also this is not the purpose of this forum, we are here to get people up and running, we do not cover any and all things that you can configure Apache to do once its running, thats for you to learn from books and tutorials.

Sorry.

---------------------------------------------------------------------------------------------
(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


Sorry, only registered users may post in this forum.