尝试按照教程在 Debian Apache AWS Lightsail 实例上设置 SSL/TLS 证书,但仍然无法正常工作

Trying to set up SSL/TLS certificate on Debian Apache AWS Lightsail instance by following tutorial, but still not working

"not working" 我的意思是页面加载时带有 http:// 前缀。如果我手动输入 https:// 它会超时。我希望以前做过这件事的人可以浏览一下教程,看看可能缺少什么。

我试过的教程都大同小异:

如果我使用以下在线实用程序测试 SSL 连接:

我收到这个错误:

No SSL certificates were found on mywebsite.com. Make sure that the name resolves to the correct server and that the SSL port (default is 443) is open on your server's firewall.

相关信息:

$ sudo uname -a Linux ip-172-26-14-207 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux

运行 在安装了 Debian(仅 OS)和 LAMP 堆栈的 AWS Lightsail 实例中。

解决了!在使用nmap、wget、telnet等验证443端口是本地开放的,外部没有开放后,我想起我的AWS Lightsail实例是一个虚拟专用服务器,我可能需要配置VPS。果然,在Lightsail web 界面中有一个防火墙设置。

Lightsail 登陆页面 > 管理实例 > 网络 > 防火墙