【问题标题】:ssl for aws EC2 Flask application用于 aws EC2 Flask 应用程序的 ssl
【发布时间】:2018-09-18 04:01:38
【问题描述】:

我从 freenom.com 注册了一个免费域名,并从 AWS route53 添加了名称服务器。现在我的域<blabla>.ga 成功重定向到 EC2 python 烧瓶服务器。但我真的不知道如何使用让加密添加 ssl。我正在关注链接https://ivopetkov.com/b/let-s-encrypt-on-ec2/ 对我的 ec2 进行 SLLifying。运行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.

here 提出了类似的问题,但我已经在两个答案中做了大部分解释。任何人都可以帮助我解决我在这里缺少的东西吗?

【问题讨论】:

标签: apache amazon-web-services flask amazon-ec2 lets-encrypt


【解决方案1】:

尝试以下教程:

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 的情况下访问上述网络应用程序,然后尝试安装 SSL。如我所见,您遇到以下错误

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

一定有一些配置问题。请调试它并告诉我。

【讨论】:

  • 这些教程很流畅。终于搞定了HTTPS。谢谢:)
猜你喜欢
  • 2016-08-07
  • 1970-01-01
  • 2017-06-12
  • 2018-01-02
  • 2020-08-22
  • 2017-12-13
  • 2015-11-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多