I'm having some trouble. I've done a clean install on my machine and am in the process of re-installing PHP, MySQL and Apache 2.2. I run an application that requires that I have an SSL cert installed on my localhost and I am having trouble getting the SSL working. So far I've got Apache running normally, PHP5.2.6 running, MySQL 5.1.3 and phpMyAdmin 3.2. Everything works perfectly but the SSL connection. For some reason, it keeps saying the connection was refused. I'm not sure if it is my local Kaspersky Internet Security that is blocking it but I just installed the new version of that too and they changed the UI so I have no idea where to check the settings. Can anyone please help me? I've generated the .cert and the .key using OpenSSL. Here is my httpd.conf file (related part): # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # # Note: The following must must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # <IfModule ssl_module> SSLMutex default SSLRandomSeed startup builtin SSLSessionCache none </IfModule> Code (markup): Here is my httpd-vhosts.conf: # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. # <VirtualHost *:80> ServerAdmin jim@extra6.com DocumentRoot "C:/Users/jthornton/webserver/public_html" ServerName myworkshop.com ServerAlias www.myworkshop.com ErrorLog "C:/Users/jthornton/webserver/logs/myworkshop.com-error.log" CustomLog "C:/Users/jthornton/webserver/logs/myworkshop.com-access.log" common </VirtualHost> <VirtualHost myworkshop.com:443> SSLEngine On SSLCertificateFile conf/ssl/myworkshop.cert SSLCertificateKeyFile conf/ssl/myworkshop.key ServerAdmin jim@extra6.com DocumentRoot "C:/webserver/public_html" ServerName myworkshop.com ServerAlias www.myworkshop.com ServerAlias myworkshop.com ErrorLog "C:/webserver/logs/myworkshop.com-error.log" CustomLog "C:/webserver/logs/myworkshop.com-access.log" common </VirtualHost> Code (markup):
Your internet security might be denying an SSL connection to localhost due to SSL domain name issues. IE a mismatch with the domain and the certificate signature. EDIT: A little more clarification: The cert is signed for myworkshop.com but you're browsing to https//localhost/. Something to think about. Try disabling your software and try the connection again. Or, if you have another machine in your LAN try connecting to the box from there. You settings look absolutely correct.
Thank you for the suggestion. It was caused because of the line that is commented out at the bottom to include httpd-ssl.conf.