Replacing the SSL Certificate Used by an HTTPS or SSL Load Balancer

You can specify a new SSL certificate to use by a load balancer with SSL termination.

This certificate replaces the certificate used by HTTPS or SSL listeners of the specified load balancer. It must be an x509-format certificate uploaded in Elastic Identity Management (EIM).

The following x509 certificate formats are supported: x509, PEM, CER, CRT, CSV, RSA, and TXT.

This feature is not available from Cockpit. This documentation only describes the procedure using AWS CLI.

Before you begin: Upload an SSL server certificate in Elastic Identity Management (EIM). For more information, see Uploading a Server Certificate.

To replace the server certificate used by a load balancer, use the set-load-balancer-listener-ssl-certificate command following this syntax:

Request sample
$ aws elb set-load-balancer-listener-ssl-certificate \
    --profile YOUR_PROFILE \
    --load-balancer-name my-load-balancer \
    --load-balancer-port 443 \
    --ssl-certificate-id arn:aws:iam::123456789000:server-certificate/division/subdivision/my-server-certificate \

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • load-balancer-name: The name of the load balancer.

  • load-balancer-port: The port using the SSL certificate.

  • ssl-certificate-id: The OUTSCALE Resource Name (ORN) of the certificate. For more information, see Getting Information About a Server Certificate.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified server certificate replaces the one used by the HTTPS listeners of the load balancer.

Related Page

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.