The answer to this question led me in the right direction. Beyond Hanselman
instructions , thatโs what I had to do.
First of all, I included SNI in the binding of my site in the IIS Express application applicationhosts.config. This meant adding the sslFlags attribute:
<binding protocol="https" bindingInformation="*:443:foo.local" sslFlags="1" /> <binding protocol="https" bindingInformation="*:443:bar.local" sslFlags="1" />
(credit: Configuring SNI on IIS8? )
Then, instead of using makecert I created a self-signed certificate using the PowerShell New-SelfSignedCertificate :
New-SelfSignedCertificate -DnsName foo.local, bar.local -CertStoreLocation cert:\LocalMachine\My
(credit: How to create a self-signed SAN certificate in Windows 8 )
In addition, I followed Hanselman's instructions to use netsh http add sslcert... to "register" a certificate for an IP port and to use the MMC Certificates snap-in to make it reliable.
Bryan source share