Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 2530 invoked from network); 30 Jan 2008 14:43:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2008 14:43:09 -0000 Received: (qmail 23252 invoked by uid 500); 30 Jan 2008 14:42:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23233 invoked by uid 500); 30 Jan 2008 14:42:49 -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 23221 invoked by uid 99); 30 Jan 2008 14:42:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 06:42:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ole.ersoy@gmail.com designates 72.14.204.234 as permitted sender) Received: from [72.14.204.234] (HELO qb-out-0506.google.com) (72.14.204.234) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2008 14:42:21 +0000 Received: by qb-out-0506.google.com with SMTP id q12so329458qba.12 for ; Wed, 30 Jan 2008 06:42:27 -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=kYuSLarWnXMaJ3/vx3isLa0rmGRP1ykwfBSZpry/p8k=; b=IhucI424Emg6SYCa8WT/hduvh14hLKVkB0wgBiiCpflOang7uiDto907UlIjCZzcMOiTvKIkCDpeWw/8ZislmfxaCZR4Vt2WJxu56CbVQIuYrAtnmxthTkxQ8LLp3ycm6v+fSEDu29eg8KRb0ZfZbpCaLU5n+cIaEudhLLBMHR4= 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=GBSM7KtiEIL8LA4Pl1iI7Wk2esnvm6h7FRTEA5qkspNZGOKRiNZXwsc+S7nG/BDvcE0E5gjmFu9HPfXrXnRXUgvBOj/a76BMbWGPmnxPRFsZcve4yO/w/vVyaF/ZSOPI70OEHCoRd57nqivZH0MtTRjoU7ZEzKorUSCM0Bi8J2Y= Received: by 10.35.87.8 with SMTP id p8mr919737pyl.16.1201704146829; Wed, 30 Jan 2008 06:42:26 -0800 (PST) Received: from localhost.localdomain ( [98.193.70.182]) by mx.google.com with ESMTPS id a70sm1954114pye.4.2008.01.30.06.42.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Jan 2008 06:42:26 -0800 (PST) Message-ID: <47A08CD0.6090100@gmail.com> Date: Wed, 30 Jan 2008 08:42:24 -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> In-Reply-To: <22d56c4d0801292201n5e529526k9ae4effc95c41a49@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 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