大网数据广告活动
服务器运维问答

AWS Load Balancing without Certificate?

· 52CE 我爱测

I currently have my NextJS site and my domain hosted with Vercel, which provides a SSL certificate for my domains. My web application is on mydomain.com and my backend domain is backend.mydomain.com Since my backend is in EC2, I …

问题原文

原帖链接 · Jon Tan · CC BY-SA 4.0

I currently have my NextJS site and my domain hosted with Vercel, which provides a SSL certificate for my domains.

My web application is on mydomain.com and my backend domain is backend.mydomain.com

Since my backend is in EC2, I tried to set up a AWS Load Balancer to make HTTPS requests from my frontend to backend.

Should I set up a HTTP/HTTPS load balancer, or a TCP load balancer? AWS keeps asking for my certificate, but I do not have it, since the details are hidden from my by Vercel.

Will I have to contact them to get more details?

已采纳解答

原帖链接 · Tim · CC BY-SA 4.0

From what you've said your front end is hosted by Vercel, your back end by EC2. They're completely independent from a load balancing / certificate point of view.

I suggest:

  • Create a certificate for your back end server using AWS Certificate Manager (ACM). Alternately you can import an existing SSL cert into ACM, but then it won't re-issue automatically.
  • Create an AWS Application Load Balancer, and associate it with the new ACM cert
  • Ensure your load balancer directs traffic to your EC2 instance. You can use auto scaling or do it manually, your call.

In comments you mentioned you can't use ACM because you already have a cert issued elsewhere. You can have multiple CAs issue a certificate for the same domain. If you're having a problem with certificate issuing please create another question that's much more detailed.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-10-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。