Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 25452 invoked from network); 30 Jan 2008 16:34:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2008 16:34:35 -0000 Received: (qmail 19170 invoked by uid 500); 30 Jan 2008 16:34:16 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18799 invoked by uid 500); 30 Jan 2008 16:34:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 18788 invoked by uid 99); 30 Jan 2008 16:34:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 08:34:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ole.ersoy@gmail.com designates 72.14.204.230 as permitted sender) Received: from [72.14.204.230] (HELO qb-out-0506.google.com) (72.14.204.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 16:33:58 +0000 Received: by qb-out-0506.google.com with SMTP id q12so376829qba.12 for ; Wed, 30 Jan 2008 08:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=fks+AgfBwv7JzAp/z71WO/vIBhZNdZfw2rykuVvu3jg=; b=Q3sNovXR8lehuKY0vorUjLQt9UEOGzmnnGXQONA42HdjZg3doCWwvn+/REuin6U0cHLc+NKsQ/OxUYY/xmmNmDG0wXBpNx+gWNaZB/b8kl1hiVCj+UGpHnpSaOpBp7GkKOEnril92m29/TrdxsXaSnUv0q8G11yM8n3vJj5r1Z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bWDXMX1IOAYFYmWs4GNcTTwTsD73alAfZ0eiROQNEOavTVt9ZncQXU4pJXYLQqNlGif4whpBx854PUy5hpPWF3zSpIxTsMOaQ6h6fTmwkW6/7aXCYGJhRnu4ZRsSUF0pXlMLQsef1vRBhHgV//Ld4qiiOpHE/yeBqeSMh06za2c= Received: by 10.65.205.16 with SMTP id h16mr2029446qbq.31.1201710830764; Wed, 30 Jan 2008 08:33:50 -0800 (PST) Received: from localhost.localdomain ( [98.193.70.182]) by mx.google.com with ESMTPS id e15sm744746qbe.2.2008.01.30.08.33.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Jan 2008 08:33:49 -0800 (PST) Message-ID: <47A0A6EB.9080008@gmail.com> Date: Wed, 30 Jan 2008 10:33:47 -0600 From: Ole Ersoy User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Invalid Keystore Format Exception References: <47A00DFC.3070200@gmail.com> <22d56c4d0801292201n5e529526k9ae4effc95c41a49@mail.gmail.com> <47A08CD0.6090100@gmail.com> <22d56c4d0801300655l42be4babk8ff222ae6b3635dd@mail.gmail.com> In-Reply-To: <22d56c4d0801300655l42be4babk8ff222ae6b3635dd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hmmm...Maybe it's an IcedTea thing. I looked here: http://www.ensode.net/java_fedora_8_icedtea.html I'll give the Sun JDK a shot. Cheers, - Ole Vamsavardhana Reddy wrote: > Seems strange. Can you send a keystore file that you generated along with > the passwords you used for the keystore as well as the key (you can generate > one with password "secret" say)? May be I can investigate if there is > something wrong with the keystore. Also, what JDK/JVM are you using? > > ++Vamsi > > On Jan 30, 2008 8:12 PM, Ole Ersoy wrote: > >> Hi Vamsi, >> >> I tried: >> $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -storetype JKS >> >> Thanks for the suggestion though, >> - Ole >> >> >> >> Vamsavardhana Reddy wrote: >>> May be you should use the "-storetype JKS" to be sure of the format in >> which >>> the keystore is generated. >>> >>> ++Vamsi >>> >>> On Jan 30, 2008 11:11 AM, Ole Ersoy wrote: >>> >>>> Hi, >>>> >>>> I'm trying to get SSL working real quick for some experiments, and I >> did >>>> this: >>>> >>>> $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA >>>> >>>> Answered the questions, got .keystore to appear in my home directory >> and >>>> then I uncommented the SSL Connector element in server.xml and filled >> out >>>> the keystoreFile and keystorePass attributes. >>>> >>>> Now I get this exception: >>>> >>>> Jan 29, 2008 11:27:38 PM org.apache.coyote.http11.Http11Protocol init >>>> SEVERE: Error initializing endpoint >>>> java.io.IOException: Invalid keystore format >>>> at sun.security.provider.JavaKeyStore.engineLoad( >> JavaKeyStore.java >>>> :651) >>>> at sun.security.provider.JavaKeyStore$JKS.engineLoad( >>>> JavaKeyStore.java:56) >>>> at java.security.KeyStore.load(KeyStore.java:1202) >>>> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore( >>>> JSSESocketFactory.java:319) >>>> at >> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getTrustStore( >>>> JSSESocketFactory.java:293) >>>> at >>>> org.apache.tomcat.util.net.jsse.JSSESocketFactory.getTrustManagers( >>>> JSSESocketFactory.java:444) >>>> at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init( >>>> JSSESocketFactory.java:378) >>>> at >> org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket( >>>> JSSESocketFactory.java:125) >>>> >>>> >>>> Anyone know why this is happening? I tried regenerating a few times >> but >>>> hte results are still the same. >>>> >>>> Thanks, >>>> - Ole >>>> >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>>> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org