I have two different domains
Each domain has its own SSL certificate.
What I'm trying to do now uses both domains for the same SSL-enabled WildFly instance.
The WildFly documentation states that I can only reference one certificate in a keystore. Thus, I cannot simply define one <security-realm> with one key store containing both certificates.
So I defined two different <security-realm> . One for each domain.
<security-realm name="RealmExample1"> <server-identities> <ssl> <keystore path="example1.jks" keystore-password="secret" /> </ssl> </server-identities> ... </security-realm> <security-realm name="RealmExample2"> <server-identities> <ssl> <keystore path="example2.jks" keystore-password="secret2" /> </ssl> </server-identities> ... </security-realm>
However, I cannot add two security domains to the same host.
<server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https-ext"/> <https-listener name="default-ssl" security-realm="UndertowRealm" socket-binding="https"/> <host name="default-host" alias="localhost"> <filter-ref name="central-basic-auth"/> </host> </server>
Now, if I define a server for each domain, I cannot reference the same http / https listener binding because the ports are blocked.
The only solution I have found so far consists of two public IP addresses and defining two interfaces and binding the socket to http / https for each interface. Then I can define two servers with different aliases and different sockets.
At the moment, WildFly, unfortunately, does not support SNI.
Is there any other possible solution?
source share