【问题标题】:How do I setup HTTPS with a Single Instance Elastic Load Balancer for node.js?如何使用适用于 node.js 的单实例弹性负载均衡器设置 HTTPS?
【发布时间】:2020-09-22 08:02:38
【问题描述】:

我有一个.ebextensions/https-instance-securitygroup.config

Resources:
  sslSecurityGroupIngress: 
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
      IpProtocol: tcp
      ToPort: 443
      FromPort: 443
      CidrIp: 0.0.0.0/0

但是,我的网址不是 https。如何将其配置为https

【问题讨论】:

    标签: node.js https amazon-elastic-beanstalk


    【解决方案1】:

    您需要使用以下内容创建一个名为“securelistener-alb.config”的文件并将其添加到您的扩展文件夹中:

    option_settings:
      aws:elb:listener:443:
        SSLCertificateId: arn:aws:acm:us-east-2:1234567890123:certificate/####################################
        ListenerProtocol: HTTPS
        InstancePort: 80
    

    【讨论】:

    • SSLCertificateId 是什么?
    • 试过了 - 没有骰子
    • SSLCertificateID 是您在 AWS 证书管理器中注册的证书的 arn。为了添加 https 将需要创建一个证书。有注册的吗?
    • 是的 - 我制作、注册并验证了 AWS SSL 证书
    猜你喜欢
    • 2023-03-07
    • 2016-02-10
    • 1970-01-01
    • 1970-01-01
    • 2013-03-22
    • 2019-08-27
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    相关资源
    最近更新 更多