User loginNavigationResource Agents |
Apache Responds with Wrong CertificateI ran into a situation where a client was accessing a test site and ended up getting a certificate from another site on the same server. Here is the setup: The problem is this: Apache must create the SSL connection BEFORE the host header is received. When it receives a request on 192.168.1.1:443, it uses the cert attached to that virtual host BEFORE the web site is presented. So if you attempt to connect to a non-ssl site on HTTPS, apache sends you the cert for the SSL site and then serves up the web site of the non-ssl virtual host. At this point, the user gets a browser error! YUCK!
Submitted by davea on Tue, 2008-07-01 22:17. categories [ ]
|
Shopping cart
|