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