From tomcat-user-return-82928-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Thu Nov 06 13:44:19 2003 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 36033 invoked from network); 6 Nov 2003 13:44:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Nov 2003 13:44:19 -0000 Received: (qmail 67126 invoked by uid 500); 6 Nov 2003 13:43:37 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 67097 invoked by uid 500); 6 Nov 2003 13:43:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 66829 invoked from network); 6 Nov 2003 13:43:34 -0000 Received: from unknown (HELO loninmrp6.uk.db.com) (160.83.52.98) by daedalus.apache.org with SMTP; 6 Nov 2003 13:43:34 -0000 Received: from sdbo1003.db.com by loninmrp6.uk.db.com id hA6DhYxv026711; Thu, 6 Nov 2003 13:43:34 GMT Subject: Tomcat SSL problems! To: tomcat-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: "Kamal-R Patel" Date: Thu, 6 Nov 2003 13:43:31 +0000 X-MIMETrack: Serialize by Router on sdbo1003/DMGUK/DeuBaInt/DeuBa(Release 5.0.12 |February 13, 2003) at 06/11/2003 01:43:34 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ! ! ! ! ! ! ! ! ! ! ! Hi, ! ! I am getting the following error when running my JSP page: ! ! java.io.IOException: HTTPS hostname wrong: should be , but cert says ! ! I am not sure what this is about. When I point my URL to my Tomcat server which has ssl enabled, I am getting a warning saying something like ! ! "name on security cert is invalid or does not match the name of site" ! ! I ran the following commands to generate and install my certificates on my Tomcat server (which is by the way linked to an apache server): ! ! -JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (I set the CN=hostname) ! ! -JAVA_HOME/bin/keytool -selfcert -alias tomcat ! ! -JAVA_HOME/bin/keytool -export -alias tomcat -rfc -file /tmp/gb.cer ! ! -JAVA_HOME/bin/keytool -import -keystore $JAVA_HOME/jre/ ! lib/security/cacerts -alias tomcat -file /tmp/gb.cer ! ! -JAVA_HOME/bin/keytool -import -trustcacerts -alias tomcatCA -keystore $JAVA_HOME/jre/lib/security/cacerts -alias tomcat -file /tmp/gb.cer ! ! Have I missed a step or something?? ! ! My server.xml file looks like this: ! ! ! ! ! ! ! Though if I add the entry: ! ! keystoreFile="$HOME/.keystore" keystorePass="changeit" ! ! Tomcat does not start! ! ! Someone please help! ! ! Cheers. ! ! ! ! ! ! -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org