tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Watts <...@cliftonfarm.org>
Subject Re: Tomcat 7 SSL activation on AS/400?
Date Mon, 09 Jan 2012 23:32:18 GMT
Can you successfully run this command:

keytool -list -keystore {path/to/your/keystore/file} -storepass {passwd-in-server.xml}

If so, perhaps it's a character encoding issue?  Don't remember if
AS/400 uses EBCDIC as its default character set.


On Mon, 2012-01-09 at 14:42 -0800, James Lampert wrote:
> I'm attempting to bring up SSL support in Tomcat 7, on an AS/400 (V6R1).
> 
> Tomcat itself runs nicely, but following the instructions on
>      http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html
> I am consistently getting:
> > SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]              
                                      
> > Throwable occurred: org.apache.catalina.LifecycleException: Failed to initialize
component [Connector[HTTP/1.1-8443]] 
> > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)        
                                      
> > at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
                                  
> > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)        
                                      
> > at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)
                                    
> > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)        
                                      
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:573)               
                                      
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:598)               
                                      
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                
                                      
> > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
                                    
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
                            
> > at java.lang.reflect.Method.invoke(Method.java:611)                           
                                      
> > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)             
                                      
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)             
                                      
> > Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization
failed                             
> > at org.apache.catalina.connector.Connector.initInternal(Connector.java:939)   
                                      
> > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)        
                                      
> > ... 12 more                                                                   
                                      
> > Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
            
> > at com.ibm.crypto.provider.JavaKeyStore.engineLoad(Unknown Source)            
                  
> > at java.security.KeyStore.load(KeyStore.java:414)                             
                  
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:407)
       
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:306)
    
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:565)
 
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:505)
 
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:449)
           
> > at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:158)
   
> > at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:369)          
                  
> > at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:553)
                  
> > at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)         
                  
> > at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

> > at org.apache.catalina.connector.Connector.initInternal(Connector.java:937)   
                  
> > ... 13 more                                                                   
                  
> > Caused by: java.security.UnrecoverableKeyException: Password verification failed
                 
> > ... 26 more                                                                   
                  
> 
> I've tried it with the default keystore name, location, and passwords; 
> I've tried it with an explicit name, location, and both key and keystore 
> paswords. The above exceptions are thrown consistently, except for one 
> occasion when the keystore simply didn't exist where expected.
> 
> --
> James H. H. Lampert
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


Mime
View raw message