31

I can't remove the current cert because it's the default. So uh..how do I make the other one the default so I can remove the current default?

enter image description here

Note in the screenshot it says:

Select the certificates to remove from this listener

Note that you cannot remove the default certificate

please help

Alexander Mills
  • 90,741
  • 139
  • 482
  • 817

3 Answers3

59

So it might help other people as it was hard for me to find the correct option,

So here is the steps to change SSL for LoadBalancer.

  1. Click on view and edit link and add one more certificate

enter image description here

  1. Add the New SSL you want to use with LB

enter image description here

  1. Then select listener i.e (443) and click on edit enter image description here

  2. Set the new certificate as default added in step 2 enter image description here

Now you are good to remove the old certificate from the Load balancer under step 2.

Community
  • 1
  • 1
Adiii
  • 54,482
  • 7
  • 145
  • 148
  • 3
    Thank God for your response and for the Stack Overflow community. Amazon should update this page: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-certificates.html – eugene Apr 05 '21 at 20:45
  • Step 2 should add the OLD ssl certificate again. Then Step 3 change the DEFAULT ssl certificate to the NEW one. Otherwise, followed the above steps the ALB should have 2 NEW ssl cetificates. Still thanks very much for this answer. Save a lot of time for me. – lcgogo Feb 11 '22 at 04:31
4

You can't edit the default certificate from that screen -- but you can edit it. The reason for the similar attributes not being editable in the same place is probably related to the evolution of ALB over time. Specifically, multiple certificates were not originally supported -- this feature was added later.

Select the load balancer and choose Listeners.

Select the check box for the listener and choose Edit.

For Default SSL certificate, do one of the following:

If you created or imported a certificate using AWS Certificate Manager, choose From ACM and choose the certificate.

If you uploaded a certificate using IAM, choose From IAM and choose the certificate.

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-certificates.html#replace-default-certificate

Michael - sqlbot
  • 169,571
  • 25
  • 353
  • 427
-1

One solution is to delete the current listener (HTTPS 443) that is using the certificate and create a new listener with a different certificate. Kind of annoying (especially if your listener has a lot of logical rules), but that seems to have worked for me.

Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817