I am trying to setup two websites on IIS 6 with two diffent domain names - a.mysite.com and b.mysite.com. And, i want to secure these sites with SSL. So, i got two certificates for each of the domains and installed it on IIS. When i try to access a.mysite.com over SSL, it works. But, accessing b.mysite.com over SSL throws message
b.mysite.com uses an invalid security certificate.
The certificate is only valid for a.mysite.com
(Error code: ssl_error_bad_cert_domain)
Also, i couldn't start b.mysite.com on IIS stating the port is already in use. I see a couple of problems here to solve.
How can i run both the websites on IIS with SSL? What is the cause of certificate error?
Thanks for reading!
Found a similar posting on SO here: IIS6: Web Site presenting the wrong SSL certificate