Wrox Programmer Forums
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2005, 12:24 AM
Authorized User
 
Join Date: Nov 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pandjie
Default https connection

how to make https conncetion with Tomcat ???

Any help is appreciated...thanks

 
Old January 27th, 2005, 02:15 PM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To setup HTTPS on Tomcat5 I followed the steps below. A useful link for this information is http://mindprod.com/jgloss/keytool.html.

1. Generate the certificate

   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
   (The default password for the keystore is "changeit". )

2. Self sign the certificate

   keytool -selfcert -alias tomcat

3. Export the certificate to file

   keytool -export -alias tomcat -rfc -file mytomcatcert.cer

4. Import the certificate into the CA certs store

   keytool -import -keystore %JAVA_HOME%\jre\lib\security\cacerts -alias tomcat -file mytomcatcert.cer

5. Add HTTPS connector to server.xml, pointing to the .keystore file

<Connector acceptCount="256"
   clientAuth="false"
   debug="0"
   disableUploadTimeout="true"
   enableLookups="false"
   keystoreFile="D:/Tomcat5/conf/.keystore"
   keystorePass="changeit"
   maxSpareThreads="512"
   maxThreads="150"
   minSpareThreads="50"
   port="443"
   scheme="https"
   secure="true"
   sslProtocol="TLS"/>

 
Old January 28th, 2005, 06:47 PM
Authorized User
 
Join Date: Nov 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pandjie
Default

at the web page http://mindprod.com/jgloss/keytool.html, I can't see some text there... why??

 
Old January 29th, 2005, 02:39 AM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you can't see the text because you have a comma at the end of the url. Try this:

http://mindprod.com/jgloss/keytool.html

After you setup https, to connect, just browse to:

https://localhost

 
Old March 29th, 2005, 03:25 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I've been struggling with installing a real certificate for Tomcat 5 and saw your postings. Why do you add the root to the jre cacerts file and then point the keystore to .keystore under Tomcat5?

I've followed instructions in the Wrox books and still cannot get my browser to work - something about "no common encryption algorithm".

HTTPS works fine is I generate a self generated certificate. Comments?

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPS MunishBhatia ASP.NET 2.0 Professional 1 June 12th, 2007 03:52 AM
secure connection (HTTPS) yoclee BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 12th, 2004 01:11 AM
HTTPS anshul HTML Code Clinic 3 June 17th, 2004 02:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.