[英]AWS Elastic Beanstalk - NodeJS : Get certificate SSL from Letsencrypt without Beanstalk Load Balancer
For my nodejs application in Elastic BeanStalk, without Beanstalk Load Balancer I want to set up a Letsencrypt certificate and keep the classic domain provided by AWS : xxx.xxxx.elasticbeanstalk.com对于我在 Elastic BeanStalk 中的 nodejs 应用程序,没有 Beanstalk 负载均衡器,我想设置一个 Letsencrypt 证书并保留 AWS 提供的经典域:xxx.xxxx.elasticbeanstalk.com
After several searches I found two possible solutions :经过多次搜索,我找到了两种可能的解决方案:
1 - Using an .ebextensions file => to install Certbot, get a Letsencrypt certificate and config Nginx. 1 - 使用 .ebextensions 文件 => 安装 Certbot,获取 Letsencrypt 证书并配置 Nginx。
great post about that => https://bluefletch.com/blog/domain-agnostic-letsencrypt-ssl-config-for-elastic-beanstalk-single-instances/关于这个的好帖子 => https://bluefletch.com/blog/domain-agnostic-letsencrypt-ssl-config-for-elastic-beanstalk-single-instances/
2 - From an ssh connection, install Certbot, generate a certificate and Upload it to IAM AWS. 2 - 通过 ssh 连接,安装 Certbot,生成证书并将其上传到 IAM AWS。
Docs AWS : https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-ssl-upload.html文档 AWS: https : //docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-ssl-upload.html
For both solutions I have the same error message during domain verification by Certbot.对于这两种解决方案,我在 Certbot 的域验证期间都有相同的错误消息。
I think that the directory generated by certbot for the verification isn't accessible..我认为 certbot 生成的用于验证的目录无法访问..
Error :错误:
To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address.
So, my question is : What's the best way to setup a SSL Certificate to get the green lock for a Node Js Elastic BeanStalk application without Beanstalk Load Balancer ?所以,我的问题是:设置 SSL 证书以获得没有 Beanstalk 负载均衡器的 Node Js Elastic BeanStalk 应用程序的绿色锁的最佳方法是什么?
Thank you for your help.谢谢你的帮助。
I finally found the solution :我终于找到了解决方案:
I took inspiration from this script and created one using WEBROOT MODE.我从这个脚本中获得灵感,并使用 WEBROOT MODE 创建了一个。
I created a git to share this solution :我创建了一个 git 来分享这个解决方案:
https://github.com/SammyHam/LetsEncrypt-SSL-config-for-Elastic-Beanstalk https://github.com/SammyHam/LetsEncrypt-SSL-config-for-Elastic-Beanstalk
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.