WampServer HTTPS “refused to connect”
Posted by: SRD (---.dyn.iinet.net.au)
Date: June 03, 2016 05:18PM

From: [stackoverflow.com],

I created:

C:\wamp\bin\apache\apache2.4.9\ssl.crt\vhost.crt & C:\wamp\bin\apache\apache2.4.9\ssl.key\vhost.key

I edited:

C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-ssl to include:

<VirtualHost www.vhost.dev:443>

DocumentRoot "c:/wamp/www/vhostdev"
ServerName www.vhost.dev:443
ErrorLog "c:/wamp/logs/ssl_error.log"
TransferLog "c:/wamp/logs/ssl_error.log"

SSLEngine on

SSLCertificateFile "c:/wamp/bin/apache/apache2.4.9/conf/ssl.crt/vhost.crt"
SSLCertificateKeyFile "c:/wamp/bin/apache/apache2.4.9/conf/ssl.key/vhost.key"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>

<Directory "c:/wamp/www/vhostdev">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>

BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog "c:/wamp/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

The SSL Apache module is turned on.

www.vhost.dev is defined in the Windows host file correctly.

When I load [www.vhost.dev], I receive:

This site can’t be reached
www.vhost.dev refused to connect.
Try:
Reloading the page
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

There is nothing in C:\wamp\logs\apache_error.txt

There is nothing in Windows Event Viewer > Application.

Help appreciated.

Update: I created a 2nd .crt & .key for a 2nd vhost and the problem followed me when I tried to load the 2nd vhost over https. This problem has only existed since I reinstalled Windows from fresh.

Options: ReplyQuote
Re: WampServer HTTPS “refused to connect”
Posted by: SRD (---.dyn.iinet.net.au)
Date: June 05, 2016 07:44PM

After running "netsh int ipv4 install" in Windows cmd, the error has changed to:

This site can’t provide a secure connection.
ERR_SSL_PROTOCOL_ERROR

Options: ReplyQuote
Re: WampServer HTTPS “refused to connect”
Posted by: RiggsFolly (Moderator)
Date: June 05, 2016 08:34PM

Can you do the same for the IPV6 network

---------------------------------------------------------------------------------------------
(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 HTTPS “refused to connect”
Posted by: SRD (---.dyn.iinet.net.au)
Date: June 06, 2016 12:56PM

I don't know the command to reinstall/reset IPV6.

In Firefox, I receive a different error:

An error occurred during a connection to www.orsgroup.dev. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

Options: ReplyQuote
Re: WampServer HTTPS “refused to connect”
Posted by: RiggsFolly (Moderator)
Date: June 07, 2016 02:45PM

See my answer on StackOverflow

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