Multiple SSL bindings on IIS on same port

Recently I came across this situation where I was working on my local machine and triying to do some testing on SSL. For development purposes, I created a self-ceritificate using the IIS wizard. I created it correctly and then bound my site with that certificate. I was then able to acces my site using https://mymachine/Default.htm

However, the problem was IIS 7.5 self-certificate wizard would create a certificate that is issued to because my machine was on a domain and my machine’s full name was IIS issues the certificate based on the machine’s full name. Now when I try to browse this page, I would get an SSL warning in my chrome or firefox browser because my browser was expecting to receive a certificate isseud to mymachinename and not I wanted to fix this error. I solved this problem using the multiple site binding feature of IIS.

You can assign more than one binding to a single IP address which can point to variety of sitenames. So you can have one IP address like that can point to,, https://mymachine, https://mymachine2 etc. All these sites basically point to the same virtual directory. This helps to browse the site using the correct site name so that the SSL certificate matches the sitename to avoid the error.

Use the following command to add multiple bindings:

C:WindowsSystem32inetsrv>appcmd set site / “Vivek Test Website” /bindings.protocol=’https’,bindingInformation=’*:443:’].bindingInformation:*:443:mymachine2

This should give a confirmation message:  SITE object “Vivek Test Website” changed

C:WindowsSystem32inetsrv>appcmd set site / “Vivek Test Website” /bindings.protocol=’https’,bindingInformation=’*:443:’].bindingInformation:*

This should give a confirmation message: SITE object “Vivek Test Website” changed

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s