Why does my SSL certificate not work with the Tomcat Native Library?
Issue
- SSL was working with existing certificate before the Tomcat Native library was installed. However, now I have installed the Tomcat Native library and I am not able to get the APR connector to use my existing PKCS12 keystore. I get the following exception:
ERROR [Http11AprProtocol] Error initializing endpoint 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:660)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:106)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
ERROR [org.apache.coyote.http11] (MSC service thread 1-4) [] [] [] JBWEB003043: Error initializing endpoint: java.lang.Exception: No Certificate file specified or invalid file format
- Not able to use Native connectors, due to above SSL exception
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4.x
- 5.x
- 6.x
- Tomcat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.