2.1.15. fejezet, SSL konfiguráció

Kulcs generálás (jboss.server.config.dir):

keytool -genkeypair -alias serverkey -keyalg RSA -keysize 2048 -validity 7360 -keystore server.keystore -keypass mypassword -storepass mypassword -dname "cn=Server Administrator,o=Infokristaly,c=HU"

standalone.xml:

<management>
...
  <security-realms>
    <security-realm name="SslRealm">
      <server-identities>
        <ssl>
          <keystore path="server.keystore" relative-to="jboss.server.config.dir" keystore-password="mypassword" alias="serverkey"/>
        </ssl>
      </server-identities>
    </security-realm>			
  </security-realms>
...
</management>
 
<profile>
...
  <subsystem xmlns="urn:jboss:domain:undertow:1.2">
...
    <server name="default-server">
...
      <https-listener name="default-ssl" socket-binding="https" security-realm="SslRealm"/>
...
    </server>
...
  </subsystem>
...
</profile>