title: How to set up SSL in a load balanced environment?
body: <p>Here is our current infrastructure:</p>
  
  <ol>
  <li>2 web servers behind a shared load balancer</li>
  <li>dns is pointing to the load balancer</li>
  <li>web app is done in asp.net, with wcf services</li>
  </ol>
  
  <p>My question is how to set up the SSL certificate to support https connection.</p>
  
  <p>Here are 2 ideas that I have:</p>
  
  <ol>
  <li>SSL certificate terminates at the load balancer. secure/unsecure communication behind the load balancer will be forwarded to 2 different ports.<br/>
  <strong>pro:</strong>  only need 1 certificate as I scale horizontally<br/>
  <strong>cons:</strong> I have to check secure or not secure by checking which port the request is
  coming from. doesn't quite feel right to me<br/><br/>
  WCF by design will not work when IIS is binded 2 different ports<br />
  (<a href="https://connect.microsoft.com/wcf/feedback/ViewFeedback.aspx?FeedbackID=322896" rel="noreferrer">according to this</a>)<br/><br/></li>
  <li>SSL certificate terminates on each of the server?<br/>
  <strong>cons:</strong> need to add more certificates to scale horizontally</li>
  </ol>
  
  <p>thanks</p>