简体   繁体   English

AWS Elastic Beanstalk - NodeJS:在没有 Beanstalk 负载均衡器的情况下从 Letsencrypt 获取证书 SSL

[英]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.

相关问题 在AWS Elastic Beanstalk上设置SSL证书 - Setup SSL certificate on AWS Elastic Beanstalk AWS Elastic Beanstalk NodeJS 和日志 - AWS Elastic Beanstalk NodeJS and logs AWS Elastic Beanstalk 不会从 nodejs 应用程序的公共文件夹加载静态文件 - AWS Elastic Beanstalk wont load static files from public folder for nodejs app AWS Elastic BeanStalk nodejs部署错误 - AWS Elastic BeanStalk nodejs Deployment error 使用 Elastic Beanstalk 在 AWS 上部署 NodeJS API - NodeJS API deployement on AWS with Elastic Beanstalk 在Elastic Beanstalk和AWS Lambda上更新Node.js API - Updating nodejs API on Elastic Beanstalk and AWS Lambda 如何使用 Classic Load Balancer 配置 Elastic Beanstalk NodeJS 应用程序以使用 HTTPS? - How do I configure an Elastic Beanstalk NodeJS application with a Classic Load Balancer to use HTTPS? Docker 在 AWS Elastic Beanstalk 上使用 MySQL 为 NodeJ 组合 - Docker compose for NodeJs with MySQL on AWS Elastic Beanstalk 防止NGINX / nodejs AWS Elastic beantalk上的指纹 - Prevent fingerprinting on NGINX/nodejs AWS Elastic beanstalk 通过ACM和负载均衡器为AWS Nodejs弹性beantalk设置HTTPS,如何在s3存储桶中为angular设置HTTPS - HTTPS is set up for aws Nodejs elastic beanstalk throught ACM and load balancer, how do i set up the HTTPS for angular in s3 bucket
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM