简体   繁体   English

使用负载均衡器的 ec2 实例上的 SSL 证书

[英]SSL certificate on ec2 instance using load balancer

I am using 4200 port t run my application.我正在使用 4200 端口来运行我的应用程序。 I have issued one ssl certifficate from aws also.我也从 aws 签发了一份 ssl 证书。 Please let me know how can I transfer traffic to 4200 as by default its using https.请让我知道如何将流量传输到 4200,因为默认情况下它使用 https。

To use HTTPS the resource the client connects to needs to have an SSL installed.要使用 HTTPS,客户端连接的资源需要安装 SSL。

For your purpose you should create an Application Load Balancer with a listener for HTTPS running port 443. The default certificate would need to be the certificate you've added.出于您的目的,您应该创建一个应用程序负载均衡器,其中包含运行端口 443 的 HTTPS 的侦听器。默认证书需要是您添加的证书。 If you added in ACM ensure that it is located in the same region as the load balancer.如果您在ACM中添加,请确保它与负载均衡器位于同一区域。

The listener would connect to a target group containing your instance, this would be registered to use the 4200 port on your instance (with the HTTP protocol).侦听器将连接到包含您的实例的目标组,这将被注册为使用您实例上的 4200 端口(使用 HTTP 协议)。 Ensure that the security groups allow access from the load balancer to your EC2 instance.确保安全组允许从负载均衡器访问您的 EC2 实例。

If you've not ever created an ALB before these links may be useful:如果您在这些链接可能有用之前从未创建过 ALB:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有弹性负载均衡器的 AWS EC2 不发送 SSL 证书 - AWS EC2 with Elastic Load balancer not sending SSL Certificate 带有负载均衡器和证书管理器的 EC2 实例上的 WSS 套接字 - WSS Socket on EC2 instance with Load Balancer and Certificate Manager 没有负载均衡器的 EC2 实例上的 AWS SSL - NodeJS - AWS SSL on EC2 instance without Load Balancer - NodeJS 使用负载均衡器在 EC2 实例上创建到我的 API 的 SSL 连接 - Create an SSL connection to my API on EC2 Instance using a load balancer 在EC2和负载均衡器上安装SSL - Installing SSL on EC2 as well as load balancer 使用AWS Load Balancer在浏览器中显示EC2实例的IP - Using AWS Load Balancer shows the IP of EC2 instance in the browser 将 CloudFront 与没有负载均衡器的单个 EC2 实例结合使用 - Using CloudFront with a single EC2 instance without a load balancer 使用 EC2 创建的 Wordpress 实例的 SSL 证书 - SSL Certificate for Wordpress instance created using EC2 EC2负载均衡器实例协议和端口 - EC2 Load Balancer Instance Protocol and Port AWS EC2实例 - 如何将负载均衡器添加到已具有弹性IP和SSL的实例应用程序中? - AWS EC2 Instance - How to add a Load Balancer to an Instance Application that already has an Elastic IP and SSL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM