tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Eells <>
Subject SSL configuration / APR / Tomcat 7.0.17
Date Tue, 30 Aug 2011 12:44:53 GMT
Tomcat 7.0.16
Linux x86_64 GNU/Linux (Amazon AWS 64-bit AMI)

APR is definitely correctly installed, without the SSL configuration I
receive the following log info:
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
30-Aug-2011 13:22:47 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].

I am unable to start Tomcat having followed the SSL How-to ( and receive the
following stack trace on server start:

SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Protocol handler initialization
at org.apache.catalina.connector.Connector.initInternal(
 at org.apache.catalina.util.LifecycleBase.init(
 at org.apache.catalina.util.LifecycleBase.init(
 at org.apache.catalina.util.LifecycleBase.init(
at org.apache.catalina.startup.Catalina.load(
 at org.apache.catalina.startup.Catalina.load(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.load(
 at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.Exception: Unable to load certificate key
/usr/local/tomcat/conf/my.pem (error:0906D06C:PEM routines:PEM_read_bio:no
start line)
 at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
at org.apache.coyote.AbstractProtocol.init(
 at org.apache.catalina.connector.Connector.initInternal(
... 13 more

As per the documentation, my server.xml configuration is as follows:

<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />

           port="8443" maxThreads="200"
           scheme="https" secure="true" SSLEnabled="true"
           clientAuth="optional" SSLProtocol="TLSv1"/>

I have tried removing redundant parameters as per the HTTP Connector SSL
Support ( but
still receive the same error.

Any pointers gratefully received.

Best regards,


*Andrew Eells*

32-38 Dukes Place, London, EC3A 7LP

tel:           +44 (0) 845 475 1415
mobile:    +44 (0) 772 555 1809

Follow me on:

 <>   <>


The information in this email is confidential and may be legally privileged.  It is intended
solely for the addressee.  Access to this email by anyone else is unauthorised.  If you are
not the intended recipient, any disclosure, copying, distribution or any action taken or omitted
to be taken in reliance on it, is prohibited and may be unlawful.
QMetric Group Limited company number 07151701 the registered office of which is at 32-38 Dukes
Place, London, United Kingdom, EC3A 7LP.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message