I'm hitting the error:

SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Failed to initialize component 
[Connector[HTTP/1.1-8443]]
Caused by: org.apache.catalina.LifecycleException: Protocol handler 
initialization failed
Caused by: java.lang.IllegalArgumentException: Cannot store non-PrivateKeys

The connector is configured as:


    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
                address="10.0.0.62"
               maxThreads="150" SSLEnabled="true">
        <SSLHostConfig>
           <Certificate certificateKeyFile="conf/key.pem"
                         certificateFile="conf/certificate.pem"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>

I've verified the tomcat user can read the two files, and I've su'd to user 
tomcat and used:

openssl rsa -in key.pem -text

and the private key was dumped as expected. The key is not encrypted. The cert 
is self-signed and was generated by OpenSSL using CA.sh.

I'm kind of at a loss here. The example server.xml entries show naming PEM 
files directly, and the connector docs seem to imply that pem files are 
supported.

Can anyone give me a pointer on what to do here?

--
George S.
*MH Software, Inc.*
Voice: 303 438 9585
http://www.mhsoftware.com

Reply via email to