1: The original configuration is
1 <ConnectorPort= "8443"Protocol= "http/1.1"sslenabled= "true"2 MaxThreads= "Max"Scheme= "https"Secure= "true"3 ClientAuth= "false"Sslprotocol= "TLS"Keystorefile= "Conf/.keystore"Keystorepass= "123456"/>
2: Save the configuration, start the server, report the following exception:
java.lang.Exception:No Certificate file specified or invalid file format
At Org.apache.tomcat.jni.SSLContext.setCertificate (Native Method)
At Org.apache.tomcat.util.net.AprEndpoint.init (aprendpoint.java:835)
At Org.apache.coyote.http11.Http11AprProtocol.init (http11aprprotocol.java:109)
At Org.apache.catalina.connector.Connector.initialize (connector.java:1141)
At Org.apache.catalina.core.StandardService.initialize (standardservice.java:703)
At Org.apache.catalina.core.StandardServer.initialize (standardserver.java:843)
At Org.apache.catalina.startup.Catalina.load (catalina.java:538)
At Org.apache.catalina.startup.Catalina.load (catalina.java:562)
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:261)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
Cause: Tomcat version problem, I use the tomcat6_45 version, the default use APR protocol, workaround:
The configuration is modified to:
1 <ConnectorPort= "8443"Protocol= "Org.apache.coyote.http11.Http11Protocol"sslenabled= "true"2 MaxThreads= "Max"Scheme= "https"Secure= "true"3 ClientAuth= "false"Sslprotocol= "TLS"Keystorefile= "Conf/.keystore"Keystorepass= "123456"/>
Restart the server again, there is no problem.
Boot service error "No Certificate file specified or invalid file format" Exception after configuring Tomcat connector