[jboss-jira] [JBoss JIRA] (WFCORE-4900) Wildfly-openssl can not load library wfssl on RHEL6

Darran Lofthouse (Jira) issues at jboss.org
Wed Apr 1 12:42:17 EDT 2020


     [ https://issues.redhat.com/browse/WFCORE-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse moved WFLY-13320 to WFCORE-4900:
-------------------------------------------------

              Project: WildFly Core  (was: WildFly)
                  Key: WFCORE-4900  (was: WFLY-13320)
          Component/s: Security
                           (was: Security)
    Affects Version/s:     (was: 19.0.0.Final)


> Wildfly-openssl can not load library wfssl on RHEL6
> ---------------------------------------------------
>
>                 Key: WFCORE-4900
>                 URL: https://issues.redhat.com/browse/WFCORE-4900
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Security
>            Reporter: Tomas Terem
>            Assignee: Farah Juma
>            Priority: Critical
>              Labels: regression
>
> Using OpenSSL on RHEL6 cuases UnsatisfiedLinkError when loading the wfssl library.
> {code:java}
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service org.wildfly.core.management.security.realm.ApplicationRealm.ssl-context: org.jboss.msc.service.StartException in service org.wildfly.core.management.security.realm.ApplicationRealm.ssl-context: WFLYDM0018: Unable to start service
> 	at org.jboss.as.domain.management.security.SSLContextService.start(SSLContextService.java:116)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
> 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
> 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: openssl.TLS, provider: openssl, class: org.wildfly.openssl.OpenSSLContextSPI$OpenSSLTLSContextSpi)
> 	at java.security.Provider$Service.newInstance(Provider.java:1617)
> 	at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
> 	at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
> 	at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
> 	at org.jboss.as.domain.management.security.SSLContextService.start(SSLContextService.java:105)
> 	... 8 more
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.wildfly.openssl.SSL.init(SSL.java:87)
> 	at org.wildfly.openssl.OpenSSLContextSPI.<init>(OpenSSLContextSPI.java:129)
> 	at org.wildfly.openssl.OpenSSLContextSPI$OpenSSLTLSContextSpi.<init>(OpenSSLContextSPI.java:463)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 	at java.security.Provider$Service.newInstance(Provider.java:1595)
> 	... 12 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.wildfly.openssl.SSL.init(SSL.java:82)
> 	... 19 more
> Caused by: java.lang.UnsatisfiedLinkError: no wfssl in java.library.path
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1871)
> 	at java.lang.Runtime.loadLibrary0(Runtime.java:871)
> 	at java.lang.System.loadLibrary(System.java:1124)
> 	at org.wildfly.openssl.SSL$LibraryLoader.load(SSL.java:288)
> 	... 24 more
> {code}
> The issue was fixed by https://github.com/wildfly-security/wildfly-openssl/commit/dfaa7596a040fbc0b7278647dce52101dbcab41f since version 1.0.9.SP03 of wildfly-openssl. 
> However Wildfly 19.0.0.Final uses WildFly Core 11.0.0.Final which uses wildfly-openssl 1.0.9.Final without a fix. (current Wildfly Core master uses wildfly-openssl 1.0.10.Final where the fix is present)



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list