From Glassfish to Wildfly - HTTPS - part 5

How to make working https in widfly


Make a keystore with keytool and put it inside standalone/configuration
Take a note for keystore and certificate password.

Make a realm in standalone.xml in security-realms section

Example

<security-realm name="MySecurityRealm">
               <server-identities>
                   <ssl protocol="TLSv1">
                       <keystore path="foo.keystore" relative-to="jboss.server.config.dir" keystore-password="secret" key-password="secret" alias=”nome_certificato”/>
                   </ssl>
               </server-identities>

           </security-realm>


Then in web admin console you can make https listener:
Go in configuration - web - http
tab https
Click add and insert socket binding https and realm name MySecurityRealm.

No comments: