简体   繁体   English

在应用程序负载均衡器上配置多个SSL证书

[英]Config for multiple SSL Certificates on Application Load Balancer

I would like to configure multiple ssl certificates for application load balancer directly in my eb extensions file but impossible to set multiple ARN, below my config: 我想直接在我的eb扩展文件中为应用程序负载均衡器配置多个ssl证书,但是在我的配置下面不可能设置多个ARN:

- namespace: aws:elbv2:listener:443
  option_name: SSLCertificateArns
  value: 'arn:aws:acm:eu-west-1:xxx' # or 'arn:aws:acm:eu-west-1:xxx,arn:aws:acm:eu-west-1:yyy'

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elbv2-listener-default > SSLCertificateArns accepts only one ARN https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elbv2-listener-default > SSLCertificateArns只接受一个ARN

I tried to separate arn by comma in value but I have this error 我尝试用逗号分隔arn但我有这个错误

Updating Load Balancer listener named: arn:aws:elasticloadbalancing:eu-west-1:xxx failed Reason: Up to '1' certificate ARNs can be specified, but '2' were specified (Service: AmazonElasticLoadBalancingV2; Status Code: 400; Error Code: TooManyCertificates; Request ID: xxx

I can add SSL certificate manually but on every deployment a new environment is created (and an application load balancer) so my config is lost. 我可以手动添加SSL证书,但在每个部署中都会创建一个新环境(以及一个应用程序负载均衡器),因此我的配置会丢失。

Did you find a way to fix this? 你有没有办法解决这个问题? or a workaround? 还是一个解决方法?

Thanks to AWS Support, here a workaround waiting the official implementation: create an ebextensions config file like this: 感谢AWS Support,这里有一个等待正式实现的解决方法:创建一个ebextensions配置文件,如下所示:

Resources:
    AddingSSLCert2:
        Type: "AWS::ElasticLoadBalancingV2::ListenerCertificate"
        Properties:
            ListenerArn: { "Ref" : "AWSEBV2LoadBalancerListener443" }
            Certificates:
                - CertificateArn: "your-arn"

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM