如何将 LetsEncrypt SSL 安装到 AWS Elastic Beanstalk 应用程序 运行 Tomcat 8 和 Java 8 平台

How do I install LetsEncrypt SSL onto AWS Elastic Beanstalk application running Tomcat 8 with Java 8 Platform

我希望这个网站www.albunack.net支持SSL

它作为 Java WAR 文件安装到位于 albunack.elasticbeanstalk.com 的 AWS Elastic Beanstalk 上,dns(作为单个实例)配置受 Route 53 控制。

我没有太多系统管理知识,为此启用 SSL 的最简单方法是什么

这是一个非常具体的要求,所以我希望通过一系列具体步骤来实现这一点,而不是一般性的建议。

根据 AWS 的建议,使用 ElasticBeanstalk,处理 SSL 的最简单方法是 AWS Load Balancer

参考:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https.html

您可以从 AWS 轻松获得由 AWS 颁发的免费 SSL 证书,或将您的自签名证书导入 AWS ACM。

如果我们选择 ElasticBeanstalk,AWS 建议我们使用 Load Balancer & Auto-Scaling 以利用 ElasticBeanstalk 提供的所有优秀功能,例如蓝绿部署模型。

Amazon Lightsail is a choice

如果您在 ElasticBeanstalk 下仅使用一个 EC2 实例来管理您的应用程序,我建议使用 Amazon Lightsail,它的成本要低得多。

参考:https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-nginx

How to install SSL on a standalone EC2 instance

这是一个非常古老的 post 但您可以看到在单个 EC2 实例上执行此操作的步骤概述。 https://www.freecodecamp.org/news/going-https-on-amazon-ec2-ubuntu-14-04-with-lets-encrypt-certbot-on-nginx-696770649e76/