DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43634>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43634 Summary: PKCS12 keystoreType is not taken into account on Http11NioProtocol Product: Tomcat 6 Version: 6.0.14 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Connectors AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] if you specify: protocol="org.apache.coyote.http11.Http11NioProtocol" and keystoreType="PKCS12" in the server.xml file for an HTTPS connector based on NIO, you get the following exception: 16 oct. 2007 11:45:16 org.apache.coyote.http11.Http11NioProtocol init GRAVE: Erreur à l'initialisation du point de contact java.io.IOException: Invalid keystore format at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38) at java.security.KeyStore.load(KeyStore.java:1185) at org.apache.tomcat.util.net.NioEndpoint.init(NioEndpoint.java:740) at org.apache.coyote.http11.Http11NioProtocol.init(Http11NioProtocol.java:135) at org.apache.catalina.connector.Connector.initialize(Connector.java:1059) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) at org.apache.catalina.startup.Catalina.load(Catalina.java:518) at org.apache.catalina.startup.Catalina.load(Catalina.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Debugging tomcat shows that keystoreType attribute value for org.apache.tomcat.util.net.NioEndpoint is "JKS" instead of "PKCS12". Further investigation shows that the keystoreType attribute is substituted by keytype (see Connector.java: replacements.put("keystoreType", "keytype"); ) A possible fix would be to add the following methods in org.apache.coyote.http11.Http11NioProtocol: public String getKeytype() { return getKeystoreType();} public void setKeytype(String s ) { setKeystoreType(s);} -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]