适用于 AWS EC2 烧瓶应用程序的 ssl



我已经从 freenom.com 注册了一个免费域名,并从 AWS route53 添加了名称服务器。现在,我的域<blabla>.ga成功重定向到 EC2 python 烧瓶服务器。但我真的不知道如何使用让我们加密来添加 ssl。我正在按照链接 https://ivopetkov.com/b/let-s-encrypt-on-ec2/对我的ec2进行SLL化.运行letsencrypt-auto后,我添加域名并按回车键,然后我得到

[ec2-user@ip-172-31-40-218 letsencrypt]$ cd /opt/letsencrypt/
[ec2-user@ip-172-31-40-218 letsencrypt]$ ./letsencrypt-auto
Requesting to rerun ./letsencrypt-auto with root privileges...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated)  (Enter 'c' to cancel): iotserver.ga  www.iotserver.ga
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for iotserver.ga
http-01 challenge for www.iotserver.ga
Cleaning up challenges
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.

这里提出了一个类似的问题,但我已经在两个答案中完成了大部分解释。谁能帮助我解决我在这里缺少的东西?

请尝试以下教程:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04

https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps

确保您能够在没有https的情况下访问所述Web应用程序,然后尝试安装SSL。如我所见,您收到以下错误

找不到侦听端口 80 的虚拟主机,Certbot 目前需要该端口向 CA 证明您控制您的域。请为端口 80 添加虚拟主机。

一定存在一些配置问题。请调试它并让我知道。

相关内容

最新更新