Solved

tomcat giving wrong ssl cert

Posted on 2012-04-10
2
439 Views
Last Modified: 2012-04-13
I have the following connector and virtual hosts set up in tomcat and for some reason when I navigate to the host in my browser its showing a cert from localhost.localdomain.

<Connector port="443" maxHttpHeaderSize="8192" maxThreads="1150"
minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
disableUploadTimeout="true" acceptCount="1000" scheme="https"
secure="true"
SSLEnabled="true" clientAuth="false" sslProtocol="TLS" keyAlias="server"
keystoreFile="/root/star_example_com.jks"
keystorepass="example" />

<Host name="rest.example.com" appBase="/usr/share/apache-tomcat-7.0.27/Sting$
autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="resaccess_log" suffix=".txt" pattern="%h %l %u
%t &quot;%r&quot; %s %b" resolveHosts="false" />
<Alias>*.example.com</Alias>

</Host>
0
Comment
Question by:casit
  • 2
2 Comments
 
LVL 17

Assisted Solution

by:Anuroopsundd
Anuroopsundd earned 500 total points
ID: 37831205
This means you are using self signed certificate.

 you need to configure the certificate that you have from the certificate authority.

http://tomcat.apache.org/tomcat-3.3-doc/tomcat-ssl-howto.html#s6
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37831207
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

11 Experts available now in Live!

Get 1:1 Help Now