首页 > 解决方案 > 在 Windows 10 64 位 ERR_SSL_PROTOCOL_ERROR 上设置 SSL/TSL 时遇到问题

问题描述

因此,即使在我的网络之外的设备上,我的网站也可以正常使用 http。

另一方面,https 仅适用于托管服务器的机器。尝试通过 VPN 连接或尝试从我的手机连接(在同一网络上)将导致以下错误:

This website can’t provide a secure connection

ERR_SSL_PROTOCOL_ERROR

我尝试禁用防火墙,禁用防病毒软件,重新安装 Apache,使用 XAMPP 而不是 WAMP,打开端口 443,但都不起作用。仍然得到同样的错误。我在 Windows 10 64 位机器上的 WAMP 内运行 Apache 2.4。

我的虚拟主机:

Listen 443
Listen 80

<VirtualHost _default_:443> 
ServerName example.com
SSLEngine on
SSLCertificateKeyFile c:/certbot/live/example.com/privkey.pem
SSLCertificateFile c:/certbot/live/example.com/cert.pem
ServerAdmin admin@example.com
DocumentRoot f:/www
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory f:/www>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
</Directory>

ErrorLog c:/wamp64/logs/errorSSL.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog c:/wamp64/logs/accessSSL.log combined

</VirtualHost>

<VirtualHost *:80>
  ServerName example.com
  ServerAlias example.com
  DocumentRoot "f:/www"
  <Directory "f:/www">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

那么这里发生了什么?我做错了什么?任何帮助将不胜感激。

标签: sslhttpswindows-10apache2.4

解决方案


推荐阅读