Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

HTTPS got ERR_SSL_PROTOCOL_ERROR using chrome (no replies)

$
0
0
Hi

I'm running Windows Server 2016

WAMP 3.1.7

Apache 2.4.37

PHP 7.2.14

MySQL 5.7.24

I am able to access h t t p://localhost.

However, when I access h t t p s://localhost, I will get this error ERR_SSL_PROTOCOL_ERROR using Chrome.

I use openssl to generate private.key and certificate.crt and put them under

C:\wamp64\bin\apache\apache2.4.37\conf\key3


I've un-commented these three lines in httpd.conf file

LoadModule ssl_module modules/mod_ssl.so

Include conf/extra/httpd-ssl.conf

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so


I've updated httpd-ssl.conf file


<VirtualHost _default_:443>

# General setup for the virtual host
DocumentRoot "${SRVROOT}/htdocs"
ServerName localhost:443
ServerAdmin admin@example.com
ErrorLog "${SRVROOT}/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"


SSLCertificateFile "${SRVROOT}/conf/key3/certificate.crt"


SSLCertificateKeyFile "${SRVROOT}/conf/key3/private.key"


I've updated httpd-vhosts.conf

# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted
#AuthName "Restricted access"
#AuthType Basic
#AuthUserFile "${INSTALL_DIR}/www/admin/.htpasswd"
#require valid-user
</Directory>
</VirtualHost>

<VirtualHost *:443>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted
#AuthName "Restricted access"
#AuthType Basic
#AuthUserFile "${INSTALL_DIR}/www/admin/.htpasswd"
#require valid-user
</Directory>
</VirtualHost>



Can someone tell me what I am missing to make h t t p s://localhost work ?

Much appreciated

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>