<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using ELB to Serve Multiple Domains Over SSL on EC2 for Giggles and Unicorns</title>
	<atom:link href="http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/feed/" rel="self" type="application/rss+xml" />
	<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/</link>
	<description>Those who can make you believe absurdities can make you commit atrocities. —Voltaire</description>
	<lastBuildDate>Wed, 30 Nov 2011 11:58:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: ryan</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-11307</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Thu, 09 Dec 2010 15:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-11307</guid>
		<description>thanks James - good point.  I&#039;ll do some testing and post back my results if they are helpful.</description>
		<content:encoded><![CDATA[<p>thanks James &#8211; good point.  I&#8217;ll do some testing and post back my results if they are helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-11305</link>
		<dc:creator>james</dc:creator>
		<pubDate>Thu, 09 Dec 2010 12:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-11305</guid>
		<description>When I first wrote this ELB didn&#039;t offer cert hosting and that is a welcome addition. So thinking this out (bear with me, riding out a NyQuil hangover)...

For myself, the challenge is that all traffic for the app must be served over HTTPS and since the loadbalancer cannot (as far as I know) be locked down via the security groups it creates a potential hole where plaintext traffic exists. The way I have things set up at the moment is that all HTTP traffic, outside the healthcheck, is intercepted by mod-rewrite and pushed to HTTPS, additionally the application displays custom errors if people try and hit the instance directly, either by its public DNS or the FQDN we punched down for it. 

For my own piece of mind and compliance with our security practices I&#039;d prefer that the necessary ports only be open to the ELB so that the plaintext traffic becomes less of an issue. That said, if it is not as much of a pressing issue for yourself I cannot thing of a reason why moving the certs into the balancer would not work.</description>
		<content:encoded><![CDATA[<p>When I first wrote this ELB didn&#8217;t offer cert hosting and that is a welcome addition. So thinking this out (bear with me, riding out a NyQuil hangover)&#8230;</p>
<p>For myself, the challenge is that all traffic for the app must be served over HTTPS and since the loadbalancer cannot (as far as I know) be locked down via the security groups it creates a potential hole where plaintext traffic exists. The way I have things set up at the moment is that all HTTP traffic, outside the healthcheck, is intercepted by mod-rewrite and pushed to HTTPS, additionally the application displays custom errors if people try and hit the instance directly, either by its public DNS or the FQDN we punched down for it. </p>
<p>For my own piece of mind and compliance with our security practices I&#8217;d prefer that the necessary ports only be open to the ELB so that the plaintext traffic becomes less of an issue. That said, if it is not as much of a pressing issue for yourself I cannot thing of a reason why moving the certs into the balancer would not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-11291</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 09 Dec 2010 03:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-11291</guid>
		<description>1st off great article - thanks so much.

Why do the certs need to be on the apache instances? When you create the ELB cant you tell associate it with a signed certificate you have already uploaded via:
iam-servercertupload -b public_key_certificate_file  -c certificate_chain_file -k privatekey.pem -s certificate_object_name

This way the ELB will handle the overhead associated with SSL, and the apache servers can accept cleartext http to a non secure listening vhost?  This will allow the apache server instances to perform better (dont have the mod_ssl overhead)...

So example: 
I upload the *.superawesomefurntime.com and *.unicorns-unlimited SSL certs via the cmd above.

the superawesome ELB (using the superawesome cert) will listen on 443 and route to http(unsecure) port 8440 (*.superawesomefuntime.com vhost)
the unicorns ELB (using the unicorns cert) will listen on 443 and route to http(unsecure) port 8441 (*.unicorns-unlimited.com vhost)

I have not tried this yet - any reason why this would not work?

As a ref. the AWS example at http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?US_SettingUpLoadBalancerHTTPSIntegrated.html says:
&quot;Client connections to the LoadBalancer use HTTPS and connections to the back-end instances are done using plaintext.&quot;</description>
		<content:encoded><![CDATA[<p>1st off great article &#8211; thanks so much.</p>
<p>Why do the certs need to be on the apache instances? When you create the ELB cant you tell associate it with a signed certificate you have already uploaded via:<br />
iam-servercertupload -b public_key_certificate_file  -c certificate_chain_file -k privatekey.pem -s certificate_object_name</p>
<p>This way the ELB will handle the overhead associated with SSL, and the apache servers can accept cleartext http to a non secure listening vhost?  This will allow the apache server instances to perform better (dont have the mod_ssl overhead)&#8230;</p>
<p>So example:<br />
I upload the *.superawesomefurntime.com and *.unicorns-unlimited SSL certs via the cmd above.</p>
<p>the superawesome ELB (using the superawesome cert) will listen on 443 and route to http(unsecure) port 8440 (*.superawesomefuntime.com vhost)<br />
the unicorns ELB (using the unicorns cert) will listen on 443 and route to http(unsecure) port 8441 (*.unicorns-unlimited.com vhost)</p>
<p>I have not tried this yet &#8211; any reason why this would not work?</p>
<p>As a ref. the AWS example at <a href="http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?US_SettingUpLoadBalancerHTTPSIntegrated.html" rel="nofollow">http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/index.html?US_SettingUpLoadBalancerHTTPSIntegrated.html</a> says:<br />
&#8220;Client connections to the LoadBalancer use HTTPS and connections to the back-end instances are done using plaintext.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-11245</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Tue, 07 Dec 2010 22:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-11245</guid>
		<description>This worked on Windows Server 2008 and my ssl was on the server.  Use http 80 -&gt; 80, tcp 443 -&gt; something else (4431) for the load balancer settings, and the health check should use tcp 80.  Once you update your DNS to point to the load balancer it should work.  

Checks:  be sure to turn off or modify firewall, check the amazon firewall, and make sure it is running by checking the Health Check.  

I had the Health Check set to HTTP and it was causing an error due to my website setup not using the default website in IIS so no /index.html file could be found.

Good job - Thanks for great information on how to solve my mulitple SSL problem!</description>
		<content:encoded><![CDATA[<p>This worked on Windows Server 2008 and my ssl was on the server.  Use http 80 -> 80, tcp 443 -> something else (4431) for the load balancer settings, and the health check should use tcp 80.  Once you update your DNS to point to the load balancer it should work.  </p>
<p>Checks:  be sure to turn off or modify firewall, check the amazon firewall, and make sure it is running by checking the Health Check.  </p>
<p>I had the Health Check set to HTTP and it was causing an error due to my website setup not using the default website in IIS so no /index.html file could be found.</p>
<p>Good job &#8211; Thanks for great information on how to solve my mulitple SSL problem!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10951</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 28 Oct 2010 16:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10951</guid>
		<description>thx. We are going to configure one server with multiple ssl sites. This article will help (the server will only be windows :-)  )</description>
		<content:encoded><![CDATA[<p>thx. We are going to configure one server with multiple ssl sites. This article will help (the server will only be windows <img src='http://elwoodicious.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Grimes</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10946</link>
		<dc:creator>Jon Grimes</dc:creator>
		<pubDate>Wed, 27 Oct 2010 16:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10946</guid>
		<description>Excellent article. This just solved a big problem for me.

Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent article. This just solved a big problem for me.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Chepeleff</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10915</link>
		<dc:creator>Matt Chepeleff</dc:creator>
		<pubDate>Wed, 06 Oct 2010 19:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10915</guid>
		<description>Super useful, thanks.  I found this through Shlomo&#039;s page and was happy to see your name helping to solve my issue this afternoon!</description>
		<content:encoded><![CDATA[<p>Super useful, thanks.  I found this through Shlomo&#8217;s page and was happy to see your name helping to solve my issue this afternoon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apache, SSL/TSL and SNI status &#124; Vane parole...</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10859</link>
		<dc:creator>Apache, SSL/TSL and SNI status &#124; Vane parole...</dc:creator>
		<pubDate>Tue, 21 Sep 2010 14:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10859</guid>
		<description>[...] found this way to host traditional SSL sites on the same server on EC2.    (No Ratings Yet) &#160;Loading [...]</description>
		<content:encoded><![CDATA[<p>[...] found this way to host traditional SSL sites on the same server on EC2.    (No Ratings Yet) &nbsp;Loading [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10516</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 16 Jul 2010 00:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10516</guid>
		<description>This is one of those cases where the CLI tools offer more functionality than the AWS console or Elasticfox. Glad it worked out for you, though!</description>
		<content:encoded><![CDATA[<p>This is one of those cases where the CLI tools offer more functionality than the AWS console or Elasticfox. Glad it worked out for you, though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince</title>
		<link>http://elwoodicious.com/2009/12/23/using-elb-to-serve-multiple-domains-over-ssl-on-ec2-for-giggles/comment-page-1/#comment-10513</link>
		<dc:creator>Vince</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://elwoodicious.com/?p=2065#comment-10513</guid>
		<description>Thank You!!!

We definitely use the command line tools for a lot of things, but I never tried to create an ELB from the CLI tools. We were using the Amazon Control Panel web app to create our load balancers. In the AWS control panel, when you try to create an ELB it will only show you instances that are not already assigned to a load balancer. So we just assumed it couldn&#039;t be done. 

Thanks to your post, I created a new ELB using the CLI tools and was able to do just that!

In case anyone is interested, we were previously using this method with a multi-domain certificate: http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</description>
		<content:encoded><![CDATA[<p>Thank You!!!</p>
<p>We definitely use the command line tools for a lot of things, but I never tried to create an ELB from the CLI tools. We were using the Amazon Control Panel web app to create our load balancers. In the AWS control panel, when you try to create an ELB it will only show you instances that are not already assigned to a load balancer. So we just assumed it couldn&#8217;t be done. </p>
<p>Thanks to your post, I created a new ELB using the CLI tools and was able to do just that!</p>
<p>In case anyone is interested, we were previously using this method with a multi-domain certificate: <a href="http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2" rel="nofollow">http://blog.revolunet.com/index.php/reseau/administration/hosting-multiple-ssl-vhosts-on-a-single-ipportcertificate-with-apache2</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

