"Unable to load certificate (null)" when enabling HTTPS on JBoss

Solution Verified - Updated -

Issue

The following error shows up after configuring JBoss to use HTTPS:

ERROR [org.apache.coyote.http11.Http11AprProtocol] (main) Error initializing endpoint
java.lang.Exception: Unable to load certificate (null) (error:0200100E:system library:fopen:Bad address)
     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)
     at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
     at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:821)
     at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:313)
     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
     at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
     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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
     at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
     at org.jboss.system.ServiceController.start(ServiceController.java:460)
     at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In