Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I'm running three EC2 instances behind an AWS load balancer. I want to purchase an SSL certificate to use with these machines. Should I just purchase the certificate for the load balancer's public IP address and install the certificate on each machine? Will this work?

share|improve this question

AWS Elastic Load Balancer supports SSL termination at the load balancer. This means you can install your SSL certificate on the load balancer itself. The load balancer will then talk unencrypted HTTP between the load balancer and your EC2 instance.

This way you only have to install the certificate on the ELB instead of every machine. Have your Apache/Nginx/Lighttpd/whatever use plain HTTP, not SSL. Let the load balancer handle all of the SSL.

share|improve this answer
Terrific. This is explained in more detail on the AWS Blog:… – rrbrambley Jan 23 '11 at 6:46
+1 for a spot on answer. :) – Andrew M. Jan 23 '11 at 14:59
Does this work when you want to serve multiple separate SSL websites? Can you associate multiple SSL certs with the LB? – Trent Scott Sep 18 '11 at 3:20
I haven't tested it, but I expect that you can use a UC certificate, which allows you to specify multiple hostnames in one certificate. – Avleen Oct 19 '11 at 2:37

Definitely terminate the SSL at the load balancer and check x-forwarded-proto header in your code. Installing the SSL cert on ELB is dead easy if you follow this article:

Took me about 5 minutes.

share|improve this answer
Welcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Scott Pack Oct 13 '12 at 21:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.