• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

two secured websites sharing a single IP on a IIS 7 server.

Can I have two secured websites on a IIS 7 server using the same IP address?  Assuming I have the host header being specified for each secured website.
0
nav2567
Asked:
nav2567
1 Solution
 
KimputerCommented:
Yes you can if you want to secure site1.mydomain.com and site2.mydomain.com using a wildcard certificate.
If not, and you need domain1.com and domain2.com, you're out of luck, as you can have only one certificate installed (on one IP address).
0
 
Cyclops3590Commented:
Kimputer is correct.  The reasoning for this is that the SSL handshake and encryption process takes place before the HTTP request can be processed by the server.  Thus you can't tell what the request is until after the SSL certificate is already in use.
0
 
Dave_DietzCommented:
Kimputer is almost correct.

If you wish to use domain names that can't work with a wildcard certificate you can use a SAN (Subject Alternate Name) certificate that specifies the different fully qualified domain names of the site you wish to have share the same IP.

In either case, you would then need to set each site to use the same certificate and you would have to manually edit the for each in the ApplicationHost.config file to add the Host Header correctly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now