tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: Invalid Keystore Format Exception
Date Wed, 30 Jan 2008 14:42:24 GMT
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 <ole.ersoy@gmail.com> 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


Mime
View raw message