Avatar of racastillojr
racastillojr

asked on 

Binding several websites with Wildcard Certificate IIS 7

Hello,

I have a wildcard cert I want to use on several websites on my web server. When I bind it to one website it works fine. The problem comes when I try to use the cert on another site on the same server. The problem that happens is the second site will stop and when I try to restart it I get a message that says "This web site cannot be started. Another web site may be using the same port".

Is there something Im missing to config the sites to work with the wildcard cert?

Thanks for any help
Microsoft IIS Web ServerWindows Server 2008

Avatar of undefined
Last Comment
racastillojr
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

Unless you set a different host header for each site binding to the same IP address, the sites need to be bound to a different port. If you can't assign a host header on your SSL sites for your wildcard cert, it's because the Friendly Name you set on the certificate when you imported it is not set correctly. In order to set a wildcard cert to work with multiple host headers the Friendly Name of the cert has to be *.domain.com

More info here: http://forums.iis.net/t/1160776.aspx
ASKER CERTIFIED SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of racastillojr
racastillojr

ASKER

Hi hades666

I ran the commands that you mentioned and I get an error that says "Cannot find SITE object with identifier "domain name".
Avatar of Brad Howe
Brad Howe
Flag of Canada image

The command is correct, but you seem to have incorrect parameters set.

What is your website name in IIS Manager.

<YOUR WEBSITE NAME> = your IIS Manager site title. for example Default Web Site or domain name etc.... I don't know what you called your sites in IIS.


<YOUR SSL DOMAIN URL> = the url you want to use.

appcmd set site /site.name:"<YOUR WEBSITE NAME>" /+bindings.[protocol='https',bindingInformation='*:443:<YOUR SSL DOMAIN URL>']


Cheers,
Hades666
Avatar of Brad Howe
Brad Howe
Flag of Canada image

if you are unsure, you can use the following to get the proper site names.

eg:

appcmd list site /text:name

This will output the IIS SITENAMES you have setup. Then simply replace the <YOUR WEBSITE NAME> with that title and cahnge the <YOUR SSL DOMAIN URL> to your wildcard proper domain (sub1.site.com) or what ever the domain is. Don't use the *.site.com here. Use the proper url.

Cheers,
Hades666
Avatar of racastillojr
racastillojr

ASKER

Ok, thanks, I was able to bind the second site using appcmd but when I enter the https url the page doesnt display. It only displays the http part.
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Hmmm..

It should be fine.  Can you provide the output of the following please.

appcmd list site
Also, provide the details of your certificate.

Regardless of the domain, the command above should work for you. The results are either;

A. HTTPS works fine for both sites If the domains are listed properly as subject alternative names. Lock appears in browser.

B. HTTPS works fine on main site and 2nd site says there is a problem with the security certificate. This means the domain is not in the certificate.

Either way, if both sites are up and the DNS is working it should load.


Let us know,
Hades666
Avatar of racastillojr
racastillojr

ASKER

I think it has something to do with the test site because I tried it on two other sites and it worked. Thanks for your help Hades666.
Avatar of racastillojr
racastillojr

ASKER

Thanks for the help!!!!!!
Windows Server 2008
Windows Server 2008

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo