ssl - 在 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>
那么这里发生了什么?我做错了什么?任何帮助将不胜感激。
解决方案
推荐阅读
- angular - How to set default query params for Route in Angular 7?
- java - How to modify a value to Tuple2 in Java
- javascript - 使用 for-of 循环的数组中所有元素的总和/平均值
- android - 无法使用 FloatingActionButton 创建圆形按钮
- javascript - 检测移动浏览器上的拖放支持
- angular - 如何在 Angular 6 中创建一个从 url 返回 queryParams 的方法?
- c# - 如何过滤总和 = someValue 的项目列表
- react-native - React-Native:facebook登录“无效范围:邮件”问题
- php - setcookie() 期望参数 2 是字符串,数组有什么问题?
- javascript - 子组件 Vue.js 中的道具值未更新