[
https://issues.jboss.org/browse/WFCORE-1802?page=com.atlassian.jira.plugi...
]
Darran Lofthouse edited comment on WFCORE-1802 at 3/6/17 1:51 PM:
------------------------------------------------------------------
[~swd847] I am trying to ensure wildfly-openssl is registered first so we can use it if
available and fallback if not: -
https://github.com/darranl/wildfly-core/tree/WFCORE-1802
However I am running into a NPE within the
'org.jboss.as.test.integration.auditlog.AuditLogToTLSSyslogTestCase' test case.
{{
Caused by: java.lang.NullPointerException
at org.wildfly.openssl.OpenSSLSocket.connect(OpenSSLSocket.java:547)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:244)
at javax.net.ssl.SSLSocket.<init>(SSLSocket.java:196)
at org.wildfly.openssl.OpenSSLSocket.<init>(OpenSSLSocket.java:83)
at org.wildfly.openssl.OpenSSLContextSPI$1.createSocket(OpenSSLContextSPI.java:359)
at
org.jboss.as.controller.audit.SyslogAuditLogHandler$SSLContextOutputStream.<init>(SyslogAuditLogHandler.java:480)
at
org.jboss.as.controller.audit.SyslogAuditLogHandler.initialize(SyslogAuditLogHandler.java:273)
... 31 more
}}
was (Author: dlofthouse):
[~swd847] I am trying to ensure wildfly-openssl is registered first so we can use it if
available and fallback if not: -
https://github.com/darranl/wildfly-core/tree/WFCORE-1802
However I am running into a NPE within the
'org.jboss.as.test.integration.auditlog.AuditLogToTLSSyslogTestCase' test case.
{{Caused by: java.lang.NullPointerException
at org.wildfly.openssl.OpenSSLSocket.connect(OpenSSLSocket.java:547)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:244)
at javax.net.ssl.SSLSocket.<init>(SSLSocket.java:196)
at org.wildfly.openssl.OpenSSLSocket.<init>(OpenSSLSocket.java:83)
at org.wildfly.openssl.OpenSSLContextSPI$1.createSocket(OpenSSLContextSPI.java:359)
at
org.jboss.as.controller.audit.SyslogAuditLogHandler$SSLContextOutputStream.<init>(SyslogAuditLogHandler.java:480)
at
org.jboss.as.controller.audit.SyslogAuditLogHandler.initialize(SyslogAuditLogHandler.java:273)
... 31 more}}
Ensure OpenSSL Registration if first.
-------------------------------------
Key: WFCORE-1802
URL:
https://issues.jboss.org/browse/WFCORE-1802
Project: WildFly Core
Issue Type: Task
Components: Security
Reporter: Stuart Douglas
Assignee: Darran Lofthouse
Priority: Blocker
Fix For: 3.0.0.Beta8
The following in SecurityRealmResourceDefinition registers the provider: -
{code}
static {
//register the Openssl Provider, if possible
//not really sure if this is the best place for it
try {
OpenSSLProvider.register();
DomainManagementLogger.ROOT_LOGGER.registeredOpenSSLProvider();
} catch (Throwable t){
DomainManagementLogger.ROOT_LOGGER.debugf(t, "Failed to register OpenSSL
provider");
}
}
{code}
It would be good to remove this however for now we can't guarantee Elytron is enabled
so register it globally.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)