Solved

wrong ssl certificate, right domain.

Posted on 2004-10-08
1
193 Views
Last Modified: 2011-09-20
I have a site mysitefashion.com

I administer it using admin.mysitefashion.com

The httpd.conf file looks like this:


# A virtualhost for the main mysite website
<VirtualHost xxx.xxx.xx.xxx:80>
  ServerName www.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysitesite/mysite
  CustomLog logs/mysite.log combined
  ErrorLog logs/mysite_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>

# A virtualhost on the standard port 80 to redirect requests
# for the admin area to the real admin virtualhost on the ssl port
<VirtualHost xxx.xxx.xx.xxx:80>
  ServerName admin.mysitefashion.com
  CustomLog logs/public.log combined
  ErrorLog logs/public_error.log
  Redirect permanent / https://admin.mysitefashion.com
</VirtualHost>
# An SSL virtualhost for the main site
<VirtualHost xxx.xxx.xx.xxx:443>
  ServerName www.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysitesite/mysite
  SSLEngine on
  SSLCertificateFile /etc/httpd/conf/ssl.crt/mysitemainssl.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mysitefashionsslprivate.key
  SSLCACertificateFile /etc/httpd/conf/ssl.crt/mysitemainsslCA.crt
  CustomLog logs/mysitesecure.log combined
  ErrorLog logs/mysitesecure_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>

# An SSL virtualhost for the admin site
<VirtualHost xxx.xxx.xx.xxx:443>
  ServerName admin.mysitefashion.com
  DocumentRoot /home/hindrm/jakarta-tomcat-5.0.28/mysiteadminsite/mysiteadmin
  SSLEngine on
  SSLCertificateFile /etc/httpd/conf/ssl.crt/mysiteadminssl.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mysiteadminsslprivate.key
  CustomLog logs/mysiteadmin.log combined
  ErrorLog logs/mysiteadmin_error.log
  <Location /*.jsp>
    JkUriSet worker ajp13:localhost:8009
  </Location>
</VirtualHost>




the  xxx.xxx.xx.xxx part represents the IP address of my server (there is only one).  

when I browse to https://admin.mysitefashion.com I find that the certificate which is used is the signed one I have set up for the www.mysitefashion.com.  I'd like to know why the /mysiteadminssl.crt certificate is not used.

Can anyone help?
0
Comment
Question by:rosshind
1 Comment
 
LVL 15

Accepted Solution

by:
periwinkle earned 500 total points
ID: 12257799
SSL on Apache requires that you use a unique IP address - the reason that you are getting the first SSL site is because you are only using one IP address.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

25 Experts available now in Live!

Get 1:1 Help Now