Solved

Problems with IIS6 & 2 SSL certs on one site

Posted on 2012-04-09
4
517 Views
Last Modified: 2012-04-14
I'm moving from a wild card cert and am having some issues.

Previously I had my server set up like so

www.site.foo
admin.site.foo
resources.site.foo

I now have 2 EV certs (for www & resources) and a regular cert (for admin)

I've imported the certs into cert store and installed them on each site.
I've changed the sites to my new IP's and have them all set up to use 443.
I've viewed the certs in IIS and they are apparently correct
I've removed the old wildcard cert from the cert store
I've restarted IIS and each of the sites
I've run SSL diags and the sites look correct

All media & scripts from resources.site.foo load fine when browsing on www.site.foo port 80

But when I browse to a secure part of www.site.foo which has content from resources.site.foo

I get a connection rest error (shows aborted in firebug)

When I try to view any media over SSL i get the following.

resources.site.foo uses an invalid security certificate.
The certificate is only valid for www.site.foo

(this would be the reason for the aborted I'm sure)

So for some reason the certs are not working as expected. Why is IIS loading the cert for www when it should load the resources cert?




 the admin site works fine
0
Comment
Question by:SidFishes
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37824683
seems your certificate binding is not done correctly.

http://www.digicert.com/ssl-support/configure-iis-host-headers.htm
0
 
LVL 17

Assisted Solution

by:Anuroopsundd
Anuroopsundd earned 250 total points
ID: 37824692
To configure the SecureBindings metabase property for SSL host headers
1. Click Start, click Run, type
cmd
in the Open box, and then click OK.
 
2.  Type the following command at the command prompt:

cscript.exe adsutil.vbs set /w3svc/<site identifier>/SecureBindings ":443:<host header>"

where host header is the host header for the Web site, for example, site2.contoso.com or site4.contoso.com.
 


http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 0 total points
ID: 37824750
got it fixed

I'd actually done that (but did it again and that fixed the connection reset - but only after i shut down all sites and restarted them)

The other thing I hadn't done was to point the website 443 port to the correct IP

A bit more info from SSL Diag pointed me  in the right direction

When I refreshed the view i get


[ W3SVC/1834383756 ]
ServerComment = resources.site.foo
ServerAutoStart = True
ServerState = Server started
#Impersonated server account
SSLCertHash = XXXXXXXXXXX
SSLStoreName = XX
#CertName = resources.site.foo

However when I click on #CertName = resources.site.foo and do an SSL Probe I get the following


System time: Mon, 09 Apr 2012 18:42:42 GMT
Connecting to 64.34.106.3:443
Connected
Handshake: 51 bytes sent
Handshake: 5121 bytes received
Handshake: 566 bytes sent
Handshake: 43 bytes received
Handshake succeeded
Verifying server certificate, it might take a while...
Server certificate name: www.site.foo

So while it showed correct, when I run the probe it pointed to the wrong cert.

Going back into inetmgr I had a look at the IP settings and what I had forgotten to do was go into Advanced and change the settings to 443 -  it was using the default IP address in the Multiple SSL identities box.

So I changed that to point to the sites new IP (same as on 80), stopped all the site, reran the binding and I'm back in business
0
 
LVL 36

Author Closing Comment

by:SidFishes
ID: 37845942
site binding was only part of the problem. The forgetting to change the SSL IP was the real root. Splitting points for the help.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now