SetLoadBalancerListenerSSLCertificate - Elastic Load Balancing


Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.

For more information about updating your SSL certificate, see Replace the SSL certificate for your Classic Load Balancer in the User Guide for Classic Load Balancers.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the load balancer.

Type: String

Required: Yes


The port that uses the specified SSL certificate.

Type: Integer

Required: Yes


The Amazon Resource Name (ARN) of the SSL certificate.

Type: String

Required: Yes


For information about the errors that are common to all actions, see Common Errors.


The specified ARN does not refer to a valid SSL certificate in AWS Identity and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if you recently uploaded the certificate to IAM, this error might indicate that the certificate is not fully available yet.

HTTP Status Code: 400


The requested configuration change is not valid.

HTTP Status Code: 409


The load balancer does not have a listener configured at the specified port.

HTTP Status Code: 400


The specified load balancer does not exist.

HTTP Status Code: 400


The specified protocol or signature version is not supported.

HTTP Status Code: 400


Update the SSL certificate

This example replaces the existing SSL certificate for the specified HTTPS load balancer.

Sample Request &LoadBalancerName=my-loadbalancer &SSLCertificateId=arn:aws:iam::123456789012:server-certificate/my-new-server-cert &LoadBalancerPort=443 &Version=2012-06-01 &AUTHPARAMS

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: