Search This Blog

Code snippets and memory joggers

Friday, August 6, 2010

Using bingings for multiple site SSL certification - IIS7

In IIS7

Tool and technology stack is changed and you need to use Appcmd (in C:\Windows\System32\inetsrv folder) to accomplish it. Syntax is changed as well. Here is an example that you can use as reference:

Change to C:\Windows\System32\inetsrv and open a command prompt.

Type appcmd list site and press Enter to see all the Virtual Servers with current binding info like this:

C:\Windows\System32\inetsrv>appcmd list site

SITE "Default Web Site" (id:1,bindings:http/*:80:,https/*:443:,state:Started)

SITE "SharePoint Central Administration v3" (id:1189581496,bindings:http/*:8088:,http/*:80:wssadmin.treyresearch.net,state:Started)

SITE "SharePoint - wss.treyresearch.net80" (id:1702742887,bindings:https/*:443:wss.treyresearch.net,http/*:80:wss.treyresearch.net,http/*:80:wss,state:Started)

Notice, port 443 is already been used by Default Web Site and to use it with any other Web Site you must use appcmd and utilize host header. Following is an example that will allow you to add SSL support for SharePoint Central Administration V3 site. Note that current binding info will be replaced by the new values. To preserve what you have include the current values when you set the binding and separate them by comma. Following is an example.

appcmd set site "SharePoint Central Administration v3" /bindings:http/*:8088:,http/*:80:wssadmin.treyresearch.net,https/*:443:wssadmin.treyresearch.net

Hope this help –

Aamir Qureshi
http://www.agileconcepts.com/Blogs/AQ/Lists/Posts/Post.aspx?ID=18

No comments:

About Me

I love to travel and meet new people, motorbikes, moving my body through dance, martial arts and yoga. I'm a lifelong learner interested in how things work, and the way people think and make their decisions. My choice of superpower would be to speak with someone and understand them completely, including their intention and for me to be able to communicate my intention to them clearly in their own language. As an Amazon Associate, I may earn from links to qualifying purchases.