title: How configure SSL for an IIS Express site that uses multiple hostnames?
body: <p>My web application project encompasses multiple web sites served under the umbrella of a single IIS Express site.  I succeeded in following Scott Hanselman's <a href="http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx" rel="noreferrer">excellent blog post</a>, and IIS Express successfully serves both <a href="http://foo.local" rel="noreferrer">http://foo.local</a> and <a href="http://bar.local" rel="noreferrer">http://bar.local</a> from the same web application root directory.</p>
  
  <p>However, I need both sites to support SSL.  Following Hanselman's advice, I can create an SSL certificate and "attach" it to a single IP-port combination.</p>
  
  <pre><code>makecert -r -pe -n "CN=foo.local" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
  netsh http add sslcert ipport=0.0.0.0:443 appid='{214124cd-d05b-4309-9af9-9caa44b2b74b}' certhash=284475d4a4eb5c4d3ab7da4fdefa928186482376
  </code></pre>
  
  <p>That succeeds, but I am unable to repeat the process for the second site.  Evidently only one SSL certificate can be applied to a single IP-port combination.</p>
  
  <p>How can I make an SSL certificate that covers both <a href="https://foo.local" rel="noreferrer">https://foo.local</a> and <a href="https://bar.local" rel="noreferrer">https://bar.local</a>, or otherwise "attach" one for each site?</p>